New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abnormal behavior under the input box. #237
Comments
This is due to the behavior of |
No, by |
Please watch the video demonstration below. QQ2024114-144317.video-converter.com.mp4 |
Yeah, I understand |
Using VanJS to create an input element with type
number
below, setting its value to a state, and then updating the value of this state in the oninput event of the element. When the input value in the element is1.x
, the cursor stays afterx
. However, when the delete key is pressed at this point, under normal circumstances, the cursor should move from afterx
to after.
, and thenx
should be deleted. However, in the VanJS example below, afterx
is deleted, the input's value becomes1
, and the cursor moves in front of1
. This is obviously incorrect. Is this related to how VanJS updates the DOM content?The text was updated successfully, but these errors were encountered: