q-input / q-field error attribute don't work as boolean #17662
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?
the documentation of q-input / q-field present error property as a boolean, but if the value is different of undefined or null, the error's placeholder appear (div class="q-field__bottom")
![image](https://private-user-images.githubusercontent.com/3728916/389613031-20df595d-bd8e-40d2-b3d8-704d6931ad9b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjM0MTUsIm5iZiI6MTczOTQ2MzExNSwicGF0aCI6Ii8zNzI4OTE2LzM4OTYxMzAzMS0yMGRmNTk1ZC1iZDhlLTQwZDItYjNkOC03MDRkNjkzMWFkOWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTYxMTU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDI3ZGE3ZjM4OGQ4ZThkNDNjNDgzOGUyNWE4YTYyMjQ2NzEzMWVkZDlkOWM5M2JhZjJkMzMwMjNhMWQ2ZTU3MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Bt41eRzK9YO4iQw_lQDzEvClt6kDDOW1F-eNAvKs4t4)
What did you expect to happen?
i expected that the error placeholder don't show up when :error="falsy value"
Reproduction URL
https://codepen.io/onclebob/pen/jENNxmN
How to reproduce?
Go te reproduction link and see the space under the second input
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
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: