Block Editor: URLInput: Remove "required" as a default prop of URLInput #22442
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Package] Block editor
/packages/block-editor
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Previously: #18061 (comment)
Currently,
URLInput
assignsrequired
attribute to its rendered input. This limits its reusability and makes unnecessary assumptions about its rendering context. It's assumed that this was the default largely based on the assumption of specific contexts in which it was rendered (i.e. RichText link insertion).Task: Avoid assigning
required
inURLInput
. It should still be supported as an optional (opt-in) prop in cases where it is appropriate. This usage and associated cautions should be sufficiently documented.The text was updated successfully, but these errors were encountered: