You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Take a TextField with maxLength set, then type into it until you reach max length. Copy some text to clipboard then paste it into the TextField. Seemingly nothing happens, because max length is already reached. But if the value is set to empty from server side, the value is really set to empty in the server side TextField object and the client side vaadin-text-field, but the previous value is not cleared visusally.
Inspecting the vaadin-text-field with browser dev tools, the element's value property returns empty, but focusElement.value property returns the previous value. It seems the input element inside vaadin-text-field somehow retains the old value.
If the server side sets some non-empty value, everything works correctly.
TextArea also has this error.
I'm not sure if it's a vaadin-text-field-flow or a vaadin-text-field issue.
Type into the textfield until you reach max length
When the textfield accepts no more characters, paste some text into the field (nothing happens, as it should)
Click out of the field so the value travels to the server.
Click the "Clear" button.
At this point the ValueChangeListener shows the notification with the new empty value, but the original value is still present in the field.
The text was updated successfully, but these errors were encountered:
Description
Take a TextField with maxLength set, then type into it until you reach max length. Copy some text to clipboard then paste it into the TextField. Seemingly nothing happens, because max length is already reached. But if the value is set to empty from server side, the value is really set to empty in the server side TextField object and the client side vaadin-text-field, but the previous value is not cleared visusally.
Inspecting the vaadin-text-field with browser dev tools, the element's
value
property returns empty, butfocusElement.value
property returns the previous value. It seems theinput
element inside vaadin-text-field somehow retains the old value.If the server side sets some non-empty value, everything works correctly.
TextArea also has this error.
I'm not sure if it's a vaadin-text-field-flow or a vaadin-text-field issue.
Tested browsers
Affected: Chrome (78.0.3904.108), Edge (44.18362.267.0)
Unaffected: Firefox (71.0)
Vaadin version
Reproducible with 14.0.15 and 14.1.1
Code to reproduce
Steps to reproduce the error with above code:
At this point the ValueChangeListener shows the notification with the new empty value, but the original value is still present in the field.
The text was updated successfully, but these errors were encountered: