jQuery UI Widgets › Forums › Editors › MaskedInput › Selecting all text and erasing fails to clear minus sign on negative values
Tagged: jqxnumberinput, minus, negative, number, Number Input, numberinput, positive
This topic contains 3 replies, has 2 voices, and was last updated by Nadezhda 9 years, 5 months ago.
-
Author
-
May 7, 2015 at 1:33 am Selecting all text and erasing fails to clear minus sign on negative values #70746
Using the demo code at http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxnumberinput/defaultfunctionality.htm?arctic, in the Percentage box, perform the following actions:
Click inside the input area, then select all text (Ctrl-A for Windows, Command-A for OSX)
Type ‘3’, then click outside the box. Value is displayed as ‘__3.00%’.
Click inside the input area, then select all text again.
Type ‘0’, then click outside the box. Value is displayed as ‘__0.00%’.
Click the down arrow so that ‘-__1.00%’ is displayed.
Click inside the input area, then select all text again.
Type ‘3’, and note that ‘-__3.00%’ is displayed.The ‘-__3.00%’ is incorrect, and at this point there is no way to get rid of the minus sign, short of selecting all text, entering ‘0’, and clicking the up arrow to make it a positive value.
May 7, 2015 at 8:19 am Selecting all text and erasing fails to clear minus sign on negative values #70775Hello jcwren,
Please, refer to the following forum topic which contains possible solution: http://www.jqwidgets.com/community/topic/positive-values-could-not-be-changed-in-jqxnumberinput-when-negative-value-are/.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/May 7, 2015 at 10:27 am Selecting all text and erasing fails to clear minus sign on negative values #70786“This is the expected behaviour of the widget.” Wow. That is *so* wrong, and contrary to EVERY UI experience a user expects. When you select all text in a box, the user EXPECTS that it will be cleared, not maintain some state that has to be reset by re-typing a minus sign or something equally bizarre.
This is a defect in this control, without question.
You should probably re-read the UI guidelines for Windows and OSX. You’ll find that this is in no way an “expected behavior”.
May 7, 2015 at 12:53 pm Selecting all text and erasing fails to clear minus sign on negative values #70792Hi jcwren,
Thank you for your feedback. We will consider improving it in a future version of jQWidgets.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.