See here:
|
const hasSelection = selected && typeof selected === 'string' |
If you have this kind of option:
<SingleSelectOption value={''} label="None" />
since the empty string is falsey it fails the check and doesn't show the selected value if its value is ''. I would say it should show that.
See here:
ui/packages/core/src/SingleSelect/Input.js
Line 23 in 4d48cff
If you have this kind of option:
since the empty string is falsey it fails the check and doesn't show the selected value if its value is
''. I would say it should show that.