Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

ListView.GetItemByValue(..) return item with invalid Value property #128

Closed FlowIT-JIT closed 2 years ago

FlowIT-JIT commented 3 years ago

Consider the example below.

var titleAndValue = "R & D";
var lv = new Fit.Controls.ListView();
lv.AddItem(titleAndValue, titleAndValue);

var item = lv.GetItemByValue(titleAndValue);
console.log("Value: ", item.Value); // BUG: returns "R%20%26amp%3B%20D" rather than "R & D"

An item retrieved using GetItemByValue(..) is returned with a Value property that seems URL encoded.