Closed sagg closed 4 years ago
Maybe related to or duplicate of https://github.com/JosephusPaye/Keen-UI/issues/465, but i'm not using UiRadioGroup. So maybe in both components is an error.
Hi,
Yeah this is a similar issue as #465. It's due to the loose equality check here:
==
considers ''
, false
and 0
to be equal.
The fix here I think will be changing it to strict equals (===
).
PR welcome! 🙂
First time i've created a PR here on github, hopefully everything is correct. 😅
Example for broken reactivity of UiCheckbox's checked
state:
https://codesandbox.io/s/keenui-uiradio-with-falsy-values-lgk4z
Hey,
when using falsy values the checked state is sometimes not set correctly. Here is an example, just take a look what the first three options are doing: https://codesandbox.io/embed/vue-template-p1zds
In my case i would need an empty string as value for an option, sadly this option is never getting checked.
Thanks again! :)