Skip to content

Commit

Permalink
Add disableSuggetions to URLInput
Browse files Browse the repository at this point in the history
In #18905 Social Links was switched from a generic input field to using
URLInput, this change adds disableSuggetions to prevent the field to
suggest internal links or pages since Social Links are typically an
external link.
  • Loading branch information
mkaz committed Dec 5, 2019
1 parent aa8239b commit 4bc8bde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/social-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const SocialLinkEdit = ( { attributes, setAttributes, isSelected } ) => {
value={ url }
onChange={ ( nextURL ) => setAttributes( { url: nextURL } ) }
placeholder={ __( 'Enter Address' ) }
disableSuggestions={ true }
/>
<IconButton icon="editor-break" label={ __( 'Apply' ) } type="submit" />
</form>
Expand Down

0 comments on commit 4bc8bde

Please sign in to comment.