-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Click on field with calendar inside makes date to go 1 month back #16948
Comments
Hi @Diferno! 👋 It looks like you provided an invalid or unsupported reproduction URL. Without a proper reproduction, your issue will have to get closed. Thank you for your collaboration. 👏 |
Here is a Codepen with minimal reproduction. Just click field caption -- "Pick a date" -- to see the behavior described above. So, it seems the following is what's happening:
TBF this seems to be a reasonable behavior in most cases, except certain compound components (probably not all of them!). I think valid solution would be to "swallow" click event if Update. It seems things happen on a lower level, a |
Created a PR with possible solution:
This is a POC, it seems to be working, and probably needs to be refined. |
Thx for the codepen, didnt see the bot's message |
What happened?
Clicking outside the calendar if the calendar is embedded inside a q-field, makes the calendar to go 1 month back.
From the Quasar official docs example:
![Captura de pantalla 2024-02-29 124639](https://private-user-images.githubusercontent.com/710360/308911367-66d28b39-be32-4adb-8dd4-be8e07b034d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTAxOTgsIm5iZiI6MTczOTQwOTg5OCwicGF0aCI6Ii83MTAzNjAvMzA4OTExMzY3LTY2ZDI4YjM5LWJlMzItNGFkYi04ZGQ0LWJlOGUwN2IwMzRkNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwMTI0NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYWM2NDVhYzVkNjMyN2ZlOTY0NThjN2VlYmY3NGEwNzMzNDA2NWY0NjA2ZmQxMmZhNjVkMmNlZWY5MjQxZTkyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Oo9K0ySxf-Li5GnE6Mm-JVld5kPyQDHlMLn4nzBqje4)
What did you expect to happen?
Nothing is triggered with the click. (as shown in the example in quasar v1)
Reproduction URL
https://quasar.dev/vue-components/field#control-types
How to reproduce?
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Components (quasar)
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: