Skip to content

SpinBox resets to min_value or max_value when right-clicked with a disabled context menu #82524

Closed
@dreadpon

Description

@dreadpon

Godot version

v4.1.stable.official [9704596]

System information

Windows 10 4.1-stable Forward+

Issue description

After calling SpinBox.set_context_menu_enabled(false), any right click from unfocused state to this SpinBox will reset its value to either min_value or max_value (what affects this choice is unclear to me).

This seems connected to #31069 and possibly #79507

Steps to reproduce

  1. Launch the scene res://spinbox_input/spinbox_input.tscn
  2. Type a number (1- 99998) in leftmost SpinBox
  3. Select the SpinBoxin the middle
  4. Right click the leftmost SpinBox
  5. Observe how it resets to either 0 or 99999 (its min and max values)
  6. You can try the same with the middle SpinBox (with enabled context menu) and rightmost LineEdit (with disabled context menu); both will behave as expected

Minimal reproduction project

spinbox_reset.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions