You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
According to ItemList documentation setting an item disabled means:
Disabled items cannot be selected and do not trigger activation signals (when double-clicking or pressing Enter).
However, when clicked with mouse, they can still trigger item_selected and item_activated signals. Visually such items appear disabled and they cannot be selected with keyboard either: pressing arrow keys does not move the selection if the next item is disabled. But on clicks they do react.
Selection itself never changes, and signals can be filtered with is_item_disabled. So, this may be an error in classref. The only similar issue I have found was related to 2.1 (#5683), which resulted in fixing item behaviour.
Steps to reproduce:
Create a UI scene with an ItemList node.
Create a similar script to fill ItemList with items and disable one:
Godot version:
3.2.1.stable
OS/device including version:
Windows 10
Issue description:
According to
ItemList
documentation setting an item disabled means:However, when clicked with mouse, they can still trigger
item_selected
anditem_activated
signals. Visually such items appear disabled and they cannot be selected with keyboard either: pressing arrow keys does not move the selection if the next item is disabled. But on clicks they do react.Selection itself never changes, and signals can be filtered with
is_item_disabled
. So, this may be an error in classref. The only similar issue I have found was related to 2.1 (#5683), which resulted in fixing item behaviour.Steps to reproduce:
ItemList
node.ItemList
with items and disable one:Minimal reproduction project:
bug-itemlist-disabled-activation.zip
The text was updated successfully, but these errors were encountered: