Open Magnusrm opened 8 months ago
Thanks for reporting this!
We'll have a look at what makes the most sense to do here as invalid values should give an error. Failing gracefully can also cause unwanted issues or illusion that things might be working when they aren't.
Is there a specific use-case you have that needs to support this?
Hi, like mentioned above, we will have to investigate what the best approach here is. While you wait, I suggest adding an error boundary closer to the Combobox, so it does not crash your whole app 😄
Description of the bug
As mentioned in slack thread message: https://designsystemet.slack.com/archives/C05RF86A3K7/p1709550064585419?thread_ts=1709549317.707409&cid=C05RF86A3K7
The value of the generated
Option
object will be undefined if any of the mentioned values are used as a value. The object should be checked for undefined before it is attempted to retrieve the objects value property in order to mitigate a hard crash.Steps To Reproduce
[""]
,[null]
or[undefined]
Additional Information
No response