Ticket #3268 (closed task: fixed)
Select/Autocompleter: don't erase incorrect input
| Reported by: | bill | Owned by: | haysmark |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9beta |
| Component: | Dijit | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
If user types in an invalid value, and tabs away, we'll just leave the text they typed in the <input> box. We won't erase the value, nor revert to the last good value, not ignore user keystrokes that cause the text to become invalid (ie, if the user types "californib" or "acalifornia", all the characters will go into the input box).
While this doesn't match the behavior of a browser's <select> or OS drop down, my judgement is that it's the best option, since we don't lose any data the user typed in. It also works well with the asynchronous nature of dojo.data, which prevents us from immediately determining if a given string is valid or invalid.