webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Unable to select first predefined value

Open snstanton opened this issue 2 years ago • 2 comments

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

snstanton avatar Apr 02 '22 01:04 snstanton

As a workaround, I am always setting a default value for select-box fields.

snstanton avatar Apr 04 '22 17:04 snstanton

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.

webiny-bot avatar Aug 03 '22 07:08 webiny-bot