Ticket #7790 (closed bug: fixed)
Autocomplete-enabled text input does not keep value when using back button in browser
|Reported by:||TylerRick||Owned by:|
When using ui.autocomplete in a form, the value of the text box gets submitted correctly. However, if instead of submitting the form, you browse to a different page (often accidentally) and then press the Back button in the browser, the text box will have reset to the value it had when it was first rendered.
Standard "text" input fields remember their value and it would be nice if autocomplete-enabled "text" input fields could too.
As it is, when I am editing my address form and navigate away and press the back button, all the fields remain just as I left them except for my State field (which is using autocomplete), which reverts back to the value it was populated with (from the database) when the page was rendered by the server.
Example: Go to http://jqueryui.com/demos/autocomplete/#default, select Java from the list, click the Download link at the top, and then the Back button in your browser.
Expected: The #tags field to still have a value ($('#tags').val()) of "Java". Instead, it has a value of "".
Another manifestation of the same bug (I believe) is that if you do Duplicate tab in Chrome after changing the value, that new value is lost for the autocomplete text input but not for the normal text inputs on the page.
Tested in: Chromium, Chrome 14.0.835.202, Firefox 7.0.1.
- Status changed from new to closed
- Resolution set to fixed