Preferences: Dispatch showing on all children (#3876)

This commit is contained in:
windingwind 2024-03-27 11:05:05 +08:00 committed by GitHub
parent 4f0e9bb9bb
commit 54b9ff6e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,7 +328,10 @@ var Zotero_Preferences = {
let pane = this.panes.get(id);
pane.container.hidden = false;
pane.container.children[0].dispatchEvent(new Event('showing'));
for (let child of pane.container.children) {
let event = new Event('showing');
child.dispatchEvent(event);
}
},
_parseXHTMLToFragment(str, entities = []) {