-
Notifications
You must be signed in to change notification settings - Fork 124
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
Unexpected behavior on keyup #56
Comments
I have same issue, the first time when the input is empty, the first keyword don't appears. |
@paliari any idea to avoid this behavior? is very important thanks you! |
for me solved with item = null as initial value (null, not {}) |
Thanks @blackgearit for the solution. If this is not a bug but feature, I think it better should be documented, because this behavior is really confusing. |
Same issue. It is fixed by the proposed sultion, but I had to make use of the focus and change events to prevent the bug from happening when providing a selected item to the autocomplete input. This is hardly a feature, but a bug. |
@blackgearit item cant be reactive if its initialized null in vuejs 2 |
Hi,
I'm not sure if i'm making some mistake but I'm following the demo code.
The problem that I'm having is that the method
getLabel
gets called twice the first time, one time withundefined
parameter and the second time it is called with the correct word that I just typed.The problem in consequence is that for example, I type the word:
abcd
, then the field is cleared and onlybcd
is applied.The difference in my code is that my template is not an object but a string, as follows:
and my
getLabel
method is as follows:One important thing is that I don't want the field to be initialized. The demo example initializes the field with some object, then you have to delete the current word and then everything works as expected.
To reproduce the error leave the item as an empty object or an empty string.
Thanks
The text was updated successfully, but these errors were encountered: