v-autocomplete
v-autocomplete copied to clipboard
update-items not working on mobile Chrome
Hi, the update-items event does get triggered on change but the value that the event handler gets invoked with is always the same.
E.g.
- initialise the component with value "foobar"
- set an update-items listener as defined in the docs
- add a console.log to log the "text" value
- start typing in the input and changing the value
After de-focusing the input (click anywhere else outside the input field), the "text" value gets updated to the current input value.
What I expect? The "text" value changes to reflect the input value changes.
What happens? The "text" value is always "foobar".
OS Android 8.0.0
Browser Chrome 69.0.3497.100
@miloskrca hello, did you find any solution for this issue?
hi @mishanino, no, sorry, I implemented my own solution.
@miloskrca Got it, thanks for your reply
input event is not fully supported on mobile devices https://developer.mozilla.org/en-US/docs/Web/Events/input
hi, i have this bug. If the ajax mode is on and autocompletion (T9) is enabled on the android mobile phone, the system does not start searching until you press "enter (loop)" Pls fx bug then switch on autocompletion on android 8 and high
This is caused by this: https://github.com/vuejs/vue/issues/9777#issuecomment-478831263
@paliari Is there a reason why a fix like https://github.com/paliari/v-autocomplete/pull/83 is not being done? Does that fix break other functionalities?
I'm hurt by this bug a lot. If there's any other workarounds like using the input bind attributes, please let me know!
I could manage to solve this using the change event of the autocomplete. Follow these steps:
- Add a function to the change event of the autocomplete
- Add an input-attrs object with an unique id identifier.
- Inside of that change event function, get the input's search value through document.getElementById('your-input').value.
- Do the desired search inside of this function.