Skip to content

Commit

Permalink
HFP-3875 Fix detection of collapse capabilities (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke authored Jun 5, 2024
1 parent b820227 commit 8cd9c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/h5peditor-list-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ H5PEditor.ListEditor = (function ($) {
*/
self.hasCollapseCapabilities = () => {
return (
this.container?.parentNode.querySelector(
this.container?.parentNode.firstChild.querySelector(
'.h5p-editor-flex-wrapper .h5peditor-button-collapse'
) instanceof HTMLElement ||
this.container?.parentNode.querySelector(
this.container?.parentNode.firstChild.querySelector(
'.h5peditor-label-button'
) instanceof HTMLElement
);
Expand Down

0 comments on commit 8cd9c7f

Please sign in to comment.