mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
refactored TabContext => NoteContext
This commit is contained in:
@@ -7,7 +7,7 @@ export default class ScrollingContainer extends Container {
|
||||
this.css('height: 100%; overflow: auto;');
|
||||
}
|
||||
|
||||
async tabNoteSwitchedEvent({noteContext, notePath}) {
|
||||
async noteSwitchedEvent({noteContext, notePath}) {
|
||||
// if notePath does not match then the noteContext has been switched to another note in the mean time
|
||||
if (noteContext.notePath === notePath) {
|
||||
this.$widget.scrollTop(0);
|
||||
|
||||
Reference in New Issue
Block a user