From 1e2edf80579841cc8930ef75feb4bb17cce303a0 Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Wed, 13 Mar 2019 22:18:09 +0530 Subject: [PATCH] Fix #244: Correct hidden css to use `BS_HIDE` within `bsCssMap` --- CHANGE.md | 1 + src/TreeView.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGE.md b/CHANGE.md index 14fa139..754cc65 100755 --- a/CHANGE.md +++ b/CHANGE.md @@ -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. diff --git a/src/TreeView.php b/src/TreeView.php index 6ea37b0..f668f38 100644 --- a/src/TreeView.php +++ b/src/TreeView.php @@ -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();