mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
isPaneCollapsed(): Use correct check
We don't know if collapsibleParent is non-null, but we already know that its previous sibling is the splitter if it is.
This commit is contained in:
parent
e625c0009e
commit
1b61be71b9
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
export function isPaneCollapsed(pane) {
|
||||
let collapsibleParent = pane.closest('splitter:not([hidden="true"]) + *');
|
||||
if (collapsibleParent.previousElementSibling?.localName !== 'splitter') {
|
||||
if (!collapsibleParent) {
|
||||
return false;
|
||||
}
|
||||
return collapsibleParent.getAttribute('collapsed') === 'true';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue