webiny-js
webiny-js copied to clipboard
Unable to select first predefined value
Version
5.25.0-beta.5
Operating System
MacOS
Browser
Chrome
What steps will reproduce the bug?
- Create a field with predefined values and a required validation.
- Create a new entry, but leave the value unspecified
- Attempt to save
- See the validation error
- Attempt to select the first value
- Note that the first value is already marked as selected
- Attempt to save
- See the validation error again
- Pick a different value
- Save and note the successful save
What is the expected behavior?
After the first save, the select-box should not show any selected value.
What do you see instead?
After the first save, the first value in the select-box shows as selected, preventing the user from selecting it and actually setting the value.
Additional information
This appears to be browser specific. I see it in Chrome, but not in Firefox.
Possible solution
No response
As a workaround, I am always setting a default value for select-box fields.
This issue is stale because it was opened 120 days with no activity. Remove the "stale-issue" label or leave a comment to revive the issue. Otherwise, it will be closed in 7 days.