QSelect name prop is not added when initial modelValue is null #17951
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
When the modelValue for QSelect inits as
null
then there is no hidden element and thus noname
prop added.This can be problematic when you added the prop
:name
but its not present in the dom. Especially for validation purposes.What did you expect to happen?
Regardless of null value, the name prop should always be present on the component.
Reproduction URL
https://codepen.io/cmcleese/pen/XJWGNdG?editors=101
How to reproduce?
name
present on any component in the domFlavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
No response
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: