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
Every time I change the variable associated to the v-text-field outside of the component, the caret position is set to the last character. When implementing a wrapper for the component that does some changes to the text itself as the user types, this can muddle any editing the user does mid-string, given that the caret will move itself to the end of the string every time the user hits a key.
Proposed solution
I propose that both an event and a method be created. The event would emit the value of the current caret when it changes, and the method will allow us to set the caret position to any position on the string.
The text was updated successfully, but these errors were encountered:
To give it a little bit of detail: I'm implementing a wrapper that masks the input as it is typed by the user. The problem is that it requires updating the value passed to the :value prop, and therefore the caret moves to the end of the string when this happens. If I could somehow just prevent the caret from moving, it would already be enough.
Problem to solve
Every time I change the variable associated to the
v-text-field
outside of the component, the caret position is set to the last character. When implementing a wrapper for the component that does some changes to the text itself as the user types, this can muddle any editing the user does mid-string, given that the caret will move itself to the end of the string every time the user hits a key.Proposed solution
I propose that both an event and a method be created. The event would emit the value of the current caret when it changes, and the method will allow us to set the caret position to any position on the string.
The text was updated successfully, but these errors were encountered: