-
-
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
QField Issue: Incorrect use of <label for=FORM_ELEMENT> #16548
Comments
Hi @eliaspanagiotidis! 👋 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. 👏 |
This is normal. The examples do not have content in the QField. When you put some content give it the id. |
You can use a |
Thank you @pdanpdan for the prompt reply. You are right, if the "control" slot contains a form field such like an input or button the issue does not appear. However, we use qField to create custom components not based on form fields. A workaround would be to insert a dummy input field in the slot as below:
However, this solution, in addition to being a hack, creates problems with handling component focus, which needs more hacks to achieve. I wonder if an option to replace the "label" parent tag of the qField with a "div" would be possible. This would make the component usable in cases that no form fields are involved in the implementation of the "control" slot. Thanks |
Fix will be available in Quasar v2.13.1 |
What happened?
Using QFields the following issue appears in devtools Issues panel:
It seems that the problem is inherited from v1 as the bug have been reported but closed because v1 LTS support had ended.
What did you expect to happen?
I would not expect any error to appear.
Reproduction URL
https://jsfiddle.net/2dkthq7L/
How to reproduce?
We will see the above issues.
The above reproduction URL was set only to overcome the restriction. Actually the devtools do not work as expected in jsfiddle or codepen.
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
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: