-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
QBtn - event prevention #12385
Comments
@Kylyi Look at @rstoenescu 's answer here: #12110 |
Valid claim. He IS using mousedown.prevent |
… @mousedown.prevent @touchstart.prevent) #12385
Enhancement will be available in Quasar v2.5.6. Correct way to prevent: |
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
… @mousedown.prevent @touchstart.prevent) - backport from Qv2 quasarframework#12385
@rstoenescu I believe the changes made to solve that issue introduced back some validation errors with: "non-passive event listenter to a scroll-blocking 'touchstart' event" |
What happened?
I have a chat component where you can fill an input with text and send the message via button.
On mobile device, I would like to keep focus inside the input element after I click the button so the virtual keyboard does not hide.
Without Quasar, I would use a very simple button with
@mousedown.prevent
but that doesn't seem to work forQBtn
.Note: Refocusing the input on btn
click
ormouseup
will make the virtual keyboard jump which I'd like to prevent.Note 2: Refocusing the input on btn
mousedown
doesn't seem to do anything.What did you expect to happen?
The
@mousedown.prevent
should prevent the button from getting focusedReproduction URL
https://codepen.io/Kylyi/pen/ExbZKrw?editors=101
How to reproduce?
<button>
) -> the input should stay focused<q-btn>
-> the input gets blurredFlavour
Vue CLI Plugin (vue-cli-plugin-quasar)
Areas
Components (quasar)
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: