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

input element - weird behavior (unexpected focus) when clicked area below element #14383

Closed
yureckey opened this issue Sep 14, 2022 · 3 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd has PR 💯 kind/bug 🐞 Qv1 Qv2 🔝 Quasar v2 issues

Comments

@yureckey
Copy link
Contributor

What happened?

if your input have validation rules (and hence ui element for notification message below input)
input element got focused when user clicks below input. There is no indication why clicking below would make input focused. Also - there is no focusing if input doesn't have validation rules. I mean this behavior is confusing and unexpected for user.
(same behavior is when Select have validation rule)

What did you expect to happen?

no focus in input element

Reproduction URL

https://codepen.io/yureckey/pen/gOzwqNv

How to reproduce?

  1. go to provided link
  2. click in an area under any input element

Flavour

UMD

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome

Quasar info output

latest

Relevant log output

No response

Additional context

No response

@yureckey yureckey added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Sep 14, 2022
@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd labels Sep 14, 2022
@MilosPaunovic
Copy link
Member

You could use hide-bottom-space prop as a solution.

@yureckey
Copy link
Contributor Author

Yes, that would work, but layout will be moved when there is validation error message. I would prefer this "bottom space" to not react to click

@rstoenescu
Copy link
Member

rstoenescu commented Sep 14, 2022

Fix will be available in Quasar v2.8 v2.8.1 and v1.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd has PR 💯 kind/bug 🐞 Qv1 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

4 participants