Browse Source

add posibile fix to use multiple sidebar treeviews

pull/3039/head
REJack 4 years ago
parent
commit
e257bffd0d
  1. 3
      build/js/Treeview.js

3
build/js/Treeview.js

@ -118,7 +118,8 @@ class Treeview {
// Private
_setupListeners() {
$(document).on('click', this._config.trigger, event => {
const elementId = this._element.attr('id') !== undefined ? `#${this._element.attr('id')}` : ''
$(document).on('click', `${elementId}${this._config.trigger}`, event => {
this.toggle(event)
})
}

Loading…
Cancel
Save