Open koendehondt opened 4 months ago
Consider this code to open a window with a read-only number input:
presenter := SpPresenter new. price := presenter newNumberInput editable: false; yourself. layout := SpBoxLayout newTopToBottom add: price expand: false; yourself. presenter layout: layout; open
The window opens like this:
It is strange that the up and down buttons are present because the number input is read-only.
Now press any of the buttons. This is the result of pressing the up button once:
Conclusion: the buttons allow changing the value of a read-only number input. That is a bug.
I suggest removing the buttons from read-only number inputs.
Consider this code to open a window with a read-only number input:
The window opens like this:
It is strange that the up and down buttons are present because the number input is read-only.
Now press any of the buttons. This is the result of pressing the up button once:
Conclusion: the buttons allow changing the value of a read-only number input. That is a bug.
I suggest removing the buttons from read-only number inputs.