Skip to content
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

Focusing resets the field to the originally set ID #101

Open
hunterboerner opened this issue Feb 6, 2025 · 0 comments
Open

Focusing resets the field to the originally set ID #101

hunterboerner opened this issue Feb 6, 2025 · 0 comments

Comments

@hunterboerner
Copy link

LiveSelect and LiveView versions
have you tried LiveSelect's and LiveView's latest versions? Please try them and see if the bug still occur
which LiveSelect version are you on? (1.5.4)
which LiveView version are you on? (1.0.3)

Describe the bug
I have a form setup with phx-focus="set-default". When I delete the value of the form then click on it, it fills in the data that was originally in the form. A click should not do that. Disabling the content of my set-default method doesn't do anything to help.

Expected behavior
Clicking while editing the field shouldn't change the field.

Actual behavior
The field is being reset to its original value.

Screenshots
https://youtu.be/-vYcd11HtAo

Browsers
Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant