fix displaying options / book on firefox, closes #4165

This commit is contained in:
zadam 2023-08-14 00:06:51 +02:00
parent 6c54c7d17d
commit bb0137b2fd

View File

@ -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() {