From 195a9cce90d45880a5a2323e72e2037adf860344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B9=B4=E5=81=A5?= Date: Sun, 1 Jul 2018 19:06:14 +0800 Subject: [PATCH] fix problem when use lazyload, can not show child node's color correctly when use lazyload to load child node, it's text color can't be showed as the property `node.color` set. --- src/js/bootstrap-treeview.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/bootstrap-treeview.js b/src/js/bootstrap-treeview.js index d161e272a..a5d6ff9f7 100644 --- a/src/js/bootstrap-treeview.js +++ b/src/js/bootstrap-treeview.js @@ -926,6 +926,11 @@ // Append .classes to the node node.$el.addClass(node.class); + // Set Node's Color + if (node.color) { + node.$el.css('color', node.color); + } + // Set the #id of the node if specified if (node.id) { node.$el.attr('id', node.id);