Skip to content

Commit

Permalink
Prevent JavaScript error when using arrow navigation in URLInput (#24047
Browse files Browse the repository at this point in the history
)
  • Loading branch information
youknowriad authored and ellatrix committed Jul 20, 2020
1 parent 3c2507a commit 39ebeb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/url-input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ class URLInput extends Component {
if (
showSuggestions &&
selectedSuggestion !== null &&
this.suggestionNodes[ selectedSuggestion ] &&
! this.scrollingIntoView
) {
this.scrollingIntoView = true;

scrollIntoView(
this.suggestionNodes[ selectedSuggestion ],
this.autocompleteRef.current,
Expand Down

0 comments on commit 39ebeb5

Please sign in to comment.