Skip to content

Build your personal knowledge base with Trilium Notes

fix displaying options / book on firefox, closes #4165

zadambb0137b2fd2e
diff --git a/src/public/app/widgets/note_list.js b/src/public/app/widgets/note_list.js
index a8c292fcc1..6f1fd8cf0b 100644
--- a/src/public/app/widgets/note_list.js
+++ b/src/public/app/widgets/note_list.js
@@ -37,7 +37,9 @@ export default class NoteListWidget extends NoteContextAwareWidget {
threshold: 0.1
});
- observer.observe(this.$widget[0]);
+ // there seems to be a race condition on Firefox which triggers the observer only before the widget is visible
+ // (intersection is false). https://github.com/zadam/trilium/issues/4165
+ setTimeout(() => observer.observe(this.$widget[0]), 10);
}
checkRenderStatus() {