diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index 8e91ae87..28c282c2 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -212,7 +212,16 @@ Ox.IconList = function(options, self) { return that.$element.value(id, key); } else { that.$element.value(id, key, value); - // FIXME: Like TextList, handle unique id and selection change here + if (key == self.unique) { + // unique id has changed + self.options.selected = self.options.selected.map(function(id_) { + return id_ == id ? value : id_ + }); + } + if (key == self.options.sort[0].key) { + // sort key has changed + that.$element.sort(); + } return that; } };