You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While adding an example to the Hilla documentation (vaadin/docs#1497), I realized that the code I was writing only works when bound to strings, not to booleans or integers.
The select basically works, but it can't show the initial value, neither it can when the value changes externally (it becomes blank).
Expected outcome
Should work like when bound to strings:
<vaadin-select ${field(model.myStringField)} ${selectRenderer(()=> html`
<vaadin-list-box>
<vaadin-item value="A">Value is A</vaadin-item>
<vaadin-item value="B">Value is B</vaadin-item>
<vaadin-item value="C">Value is C</vaadin-item>
</vaadin-list-box>
`)}>
</vaadin-select>
Minimal reproducible example
<vaadin-select ${field(model.myIntField)} ${selectRenderer(()=> html`
<vaadin-list-box>
<vaadin-item value="1">Value is 1</vaadin-item>
<vaadin-item value="2">Value is 2</vaadin-item>
<vaadin-item value="3">Value is 3</vaadin-item>
</vaadin-list-box>
`)}>
</vaadin-select>
Description
While adding an example to the Hilla documentation (vaadin/docs#1497), I realized that the code I was writing only works when bound to strings, not to booleans or integers.
The
select
basically works, but it can't show the initial value, neither it can when the value changes externally (it becomes blank).Expected outcome
Should work like when bound to strings:
Minimal reproducible example
Steps to reproduce
select
s and in the other components bound to the same valuesEnvironment
Vaadin version(s): 23.1.0 (Hilla 1.1.0)
OS: Linux
Browsers
Chrome
The text was updated successfully, but these errors were encountered: