Skip to content

Focusing resets the field to the originally set ID #101

@hunterboerner

Description

@hunterboerner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions