RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Unable to select an enum in VV

Open iaada opened this issue 4 months ago • 0 comments

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

  1. Open ViewVariables on a component that uses an enum in a DataField. KillTrackerComponent - or anything using MobState - is an example.
  2. Attempt to edit the enum to the first option.

=> It will fail to be selected.

  1. Go into code and reorder the enum.
  2. 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

iaada avatar Aug 22 '25 17:08 iaada