]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Merge branch 'main' into gs/tweak-collapse-js-selector gs/tweak-collapse-js-selector 35692/head
authorXhmikosR <xhmikosr@gmail.com>
Wed, 20 Mar 2024 16:00:23 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 16:00:23 +0000 (18:00 +0200)
1  2 
js/src/collapse.js
js/tests/unit/collapse.spec.js

index 6ac77a2a86ad514b82916904f444052f8b6a3c89,9f0c60cc5338bf75fc3af18523bbbf55da49cbba..8f5f8b389edb031fb34751c96892ffc421aa0bda
@@@ -181,10 -180,10 +179,10 @@@ class Collapse extends BaseComponent 
      reflow(this._element)
  
      this._element.classList.add(CLASS_NAME_COLLAPSING)
 -    this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW)
 +    this._element.classList.remove(CLASS_NAME_SHOW)
  
      for (const trigger of this._triggerArray) {
-       const element = getElementFromSelector(trigger)
+       const element = SelectorEngine.getElementFromSelector(trigger)
  
        if (element && !this._isShown(element)) {
          this._addAriaAndCollapsedClass([trigger], false)
Simple merge