Not sure if I should report this behavior as bug since it's unclear if it's intended or not.
I run into an issue when using Dropdown with valueTemplate and not giving optionLabel.
In such situation the rendering of the component ends with React error:
Uncaught Error: Objects are not valid as a React child (found: object with keys {klic, kodInterni, kodExterni, nazev, nazevKratky, lei, vztah}). If you meant to render a collection of children, use an array instead.
in option (created by Dropdown)
in select (created by Dropdown)
in div (created by Dropdown)
in div (created by Dropdown)
in Dropdown (created by ZpracovaniZajistitelePanel)
When I set optionLabel to some field of the values elements it works correctly.
Imo when I use valueTemplate I should not be forced to use optionLabel, because it's basically irrelevant.
MV
Dropdown - error with no optionLabel
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests