QTree with no-selection-unset
option set can't accept 0
as a key
#14505
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
On my website I have QTree component that shows items tree. Items are differentiated by
idx
field that contains integer numbers starting from 0. The QTree also hasv-model:selected
property set toselectedItem
. Since I addedno-selection-unset
property to QTree, after selecting item withidx
of0
,selectedItem
containsnull
instead. After removingno-selection-unset
everything works ok.What did you expect to happen?
With
no-selection-unset
: After selecting item with key0
, selected model should contain0
instead of null.Reproduction URL
https://codepen.io/znfgnu/pen/xxjYqbp
How to reproduce?
null
instead of zero (other options work ok)Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Components (quasar)
Platforms/Browsers
Firefox
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: