jQuery UI Widgets › Forums › Navigation › Tree › Double quotes in selectedItem returns wrong label
This topic contains 3 replies, has 2 voices, and was last updated by ivailo 7 years, 3 months ago.
I have a tree that I’m getting out the SelectedItem like this:
var selectedItem = tree.jqxTree('getSelectedItem');
if (selectedItem != null)
var itemLabel = selectedItem.label;
var itemValue = selectedItem.value;
The SelectedItem’s label has a quote in it so it appears like this in the tree:
My “selected” item
However, the itemLabel comes back as just the part before the double-quote instead of the whole thing:
We tested your case and there is no such a behavior.
Please, refer to this demo.
Probably, you have to update to the latest version (4.1.2)
I’ve updated your JSFiddle to demonstrate the problem:
Thanks for the feedback. We will investigate this behavior.
As a workaround you can replace double quotes with single quotes in beforeLoadComplete callback when they are occured.
Here is a demo.
You must be logged in to reply to this topic.