Skip to content

Commit

Permalink
Fix #244: Correct hidden css to use BS_HIDE within bsCssMap
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Mar 13, 2019
1 parent 6984e77 commit 1e2edf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Change Log: `yii2-tree-manager`

**Date:** _under development_

- (enh #244): Correct hidden css to use `BS_HIDE` within `bsCssMap`.
- (enh #240): Rename events triggered via jquery to start with `treeview:`.
- (enh #239): Allow CSS class to hide elements to be configurable (for BS 3.x / 4.x). New property `hideCssClass`.
- (enh #238): Add Chinese Translations.
Expand Down
2 changes: 1 addition & 1 deletion src/TreeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ public function initOptions()
$this->allowNewRoots = false;
}
if (!isset($this->hideCssClass)) {
$this->hideCssClass = $this->getCssClass(self::BS_HIDDEN_XS);
$this->hideCssClass = $this->getCssClass(self::BS_HIDE);
}
$this->initIcons();
$this->_nodes = $this->query->all();
Expand Down

1 comment on commit 1e2edf8

@goodevilgenius
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BS_HIDE is not on TreeView. This just throws an error.

Please sign in to comment.