Reproduction steps:
1. Open the attached project "EnumFlagsFieldModifier"
2. Click "Example/EnumFlagsFields Example" in the menu bar
3. Expand the dropdown in the MyExample window
4. While holding shift, click one of the options
5. Close and re-expand the dropdown
Expected result: Checkmarks are inversed at step 4
Actual result: Checkmarks are inversed at step 5
Reproducible with: 2022.3.8f1, 2023.1.10f1, 2023.2.0b6, 2023.2.0a2
Could not test with: 2021.3.29f1 (the dropdown closes when selecting an option)
Reproducible on: macOS 13.4.1 (Intel), Windows 11 (user’s)
Not reproducible on: No other environment tested