Browse Source

fix Closing parent in Treeview closes descendants, but "arrow" icon is not changed properly (#3647)

* fix #3643

* added extra line

* remove extra space
pull/3779/head
mostafahesham-dev 3 years ago committed by GitHub
parent
commit
3ac53de622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      build/js/Treeview.js

1
build/js/Treeview.js

@ -80,6 +80,7 @@ class Treeview {
const collapsedEvent = $.Event(EVENT_COLLAPSED)
parentLi.removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`)
parentLi.find(SELECTOR_LI).removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`)
treeviewMenu.stop().slideUp(this._config.animationSpeed, () => {
$(this._element).trigger(collapsedEvent)
treeviewMenu.find(`${SELECTOR_OPEN} > ${SELECTOR_TREEVIEW_MENU}`).slideUp()

Loading…
Cancel
Save