When removing all items from the display, ensure selection state is reset too
This avoids a problem where after a state change, we'd still think something was selected.
This commit is contained in:
parent
3aeadee946
commit
61b6fd2f9c
@ -710,6 +710,7 @@ GenericDisplay.prototype = {
|
|||||||
|
|
||||||
// Removes all displayed items.
|
// Removes all displayed items.
|
||||||
_removeAllDisplayItems: function() {
|
_removeAllDisplayItems: function() {
|
||||||
|
this.unsetSelected();
|
||||||
for (itemId in this._displayedItems)
|
for (itemId in this._displayedItems)
|
||||||
this._removeDisplayItem(itemId);
|
this._removeDisplayItem(itemId);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user