RobustToolbox
RobustToolbox copied to clipboard
Unable to select an enum in VV
Description
The first element of an enum is unselectable in ViewVariables. When attempting to select it, the state will bounce back to the previous state. The order of the elements in the code seems to be the deciding factor. I tried moving around the enums, and it was always the first one that couldn't be selected.
Reproduction
- Open ViewVariables on a component that uses an enum in a DataField. KillTrackerComponent - or anything using MobState - is an example.
- Attempt to edit the enum to the first option.
=> It will fail to be selected.
- Go into code and reorder the enum.
- Repeat steps 1-2.
=> The enum that was previously unselectable is selectable, and the new first option can't be.
Screenshots
https://github.com/user-attachments/assets/ae74ad55-87b5-4b70-8b02-cf79aeeb1a8b