Open ilyasdotdev opened 6 months ago
const {field, model, read} = useForm(MyModel); <VerticalLayout style={{ alignItems: 'stretch', width: '18rem', maxWidth: '100%' }}> <TextField label="Title" {...field(model.title)} /> <NumberField label="Order" {...field(model.order)} /> <RadioGroup label="Status" {...field(model.isEnabled)} > <RadioButton value="true" label="Enable" /> <RadioButton value="false" label="Disabled" /> </RadioGroup> </VerticalLayout>
on calling read(model) getting error on browser The radio button with the value "true" was not found.
read(model)
The radio button with the value "true" was not found.
`
No response
const {field, model, read} = useForm(MyModel); <VerticalLayout style={{ alignItems: 'stretch', width: '18rem', maxWidth: '100%' }}> <TextField label="Title" {...field(model.title)} /> <NumberField label="Order" {...field(model.order)} /> <RadioGroup label="Status" {...field(model.isEnabled)} >
<RadioButton value="false" label="Disabled" /> </RadioGroup> </VerticalLayout>
Chrome browser
Thanks. This is maybe related: https://github.com/vaadin/hilla/issues/177
It has not been fixed since 2 years?
Describe the bug
on calling
read(model)
getting error on browserThe radio button with the value "true" was not found.
`
Expected-behavior
No response
Reproduction
const {field, model, read} = useForm(MyModel); <VerticalLayout style={{ alignItems: 'stretch', width: '18rem', maxWidth: '100%' }}> <TextField label="Title" {...field(model.title)} /> <NumberField label="Order" {...field(model.order)} /> <RadioGroup label="Status" {...field(model.isEnabled)} >
System Info
Chrome browser