Fix issue with floating point and deferErrorText erasing input value
Initial information about how to reproduce the error with FloatFied
1. Create a Foo object and access his "View"
2. If you are using a browser in English, type "1-". If you are in French language, please type "1.1".
3. The value will disappear.
4. If you type again the same thing, it does not disappear and you can save
Technical information
When the new gadget state error_text
is modified, onChangeState
is called as expected.
But this function does not check in detail which state parameters were modified, and it rewrite the full DOM element.
ea219b74
ea219b74 This also set the value to an empty string, as from the browser point of view, what the user types was not valid.