Open WebFreak001 opened 3 months ago
Latest commit: 7e3b9caa89877047adde1a38656f527b93875d50
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
adding
required
would otherwise cause an extra (unstylable) component to be added which has some implicit padding from the user agent style sheet (inputs have padding) which could cause horizontal scrolling when the whole scroll field is 100% wide.The RequiredInput is added if the select is required and empty, to make the native browser validation messages show at a valid location. If it was completely hidden/removed using
display: none
it wouldn't show any validation errors anymore (at least in chromium based browsers)