Re-filling a form with select value
I have an issue where the select option is not being selected when the value is set for the second time.
E.g I've got a custom form inside a modal - when the modal is opened I
Works fine on the first opening, but not if you close the modal and then reopen a different record the fill is not populating the form select value.
E.g I've got a custom form inside a modal - when the modal is opened I
fill the form based on the record you've clicked on.Works fine on the first opening, but not if you close the modal and then reopen a different record the fill is not populating the form select value.
- It's only an issue when a
select. Works fine for text input. - The fill is working because the $state is correct e.g
->helperText(fn ($state) => $state) - Inspecting the DOM select options the value exists but the select value is blank.