Metadata
- Source
- FLUID-4511
- Type
- Bug
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- N/A
- Reporter
- Anastasia Cheetham
- Created
2011-10-06T15:55:52.150-0400 - Updated
2015-06-26T10:12:06.109-0400 - Versions
-
- 1.4
- 1.5
- Fixed Versions
-
- 1.9
- Component
-
- Prefs Framework
- Textfield Slider
- UI Options
Description
If an invalid string starting with a digit is typed into the text portion of a textfield-slider, the value is correctly ignored at the time of entry, but the string is not cleared and replaced with the actual current value, as it would be if it started with a character. The invalid string is actually saved as the setting, and interpreted as the default of "1" when the page is reloaded.
To reproduce:
1) Open a UI Options demo and enter 1.5 into one of the text fields, to set it up
2) To observe the correct behaviour, enter a string that starts with a letter into the field (e.g. "foo")
Note that the string is cleared and the value of the text field is restored to 1.5
3) Enter a string that starts with a digit, e.g. "7foo"
Note that "7foo" remains in the textfield (while the slider retains whatever the correct value was).
4) Reload the page
Note that the text size has been reset to 1 (not the original 1.5), and the string "7foo" is still displayed in the text field.
Environments
Chrome 35, FF 29, Safari 7
IE 8, 9, 10, 11 (Windows 7)
Comments
-
Justin Obara commented
2015-06-26T09:51:20.525-0400 Reopening to change the fix version to 1.9