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

Losing selected value on focus #8

Open
anoviel opened this issue Dec 5, 2018 · 1 comment
Open

Losing selected value on focus #8

anoviel opened this issue Dec 5, 2018 · 1 comment

Comments

@anoviel
Copy link

anoviel commented Dec 5, 2018

Hi i just found some unexpected behaviour:
After i selected a value from the dropdown my Vue DevTool shows the correct object in the value property.
clicking into the input immedantily deletes this value.
selecting a new value works fine.
this causes my other dependent components to do an unnessessary reload because the model changed to null while performing described situation.

i think it would be nice to change the value just if a new one is selected
or reset to null if you press enter in the empty input or pressing escape

any thoughts about that?

Greetings,
Jan Radtke

@robrogers3
Copy link
Owner

Yeah, when I designed this I considered what should happen if you click back into the field after selecting a value. On a normal select, you are right nothing happens.

What should probably happen is only mutate the currently selected value if the user changes the selection.

I'll look into this in the next couple days.

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

2 participants