-
Notifications
You must be signed in to change notification settings - Fork 972
Conversation
@@ -88,6 +89,10 @@ class UrlBar extends ImmutableComponent { | |||
if (this.suggestionsShown && selectedIndex > 0) { | |||
// load the selected suggestion | |||
this.refs.urlBarSuggestions.clickSelected() | |||
} else if (this.props.searchSuggestions && | |||
(!UrlUtil.isURL(location) || location.includes(' '))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprisingly, UrlUtil.isURL(location)
returns true if location contains whitespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted, we might want to bring in UrlUtil into our own repo in the future.
Great work, thanks. In the old browser, we had a differentiator for Command+L vs Command+K for privacy reasons. Please merge at will. |
Auditors: @bridiver
Sorry accidentally committed that last one into your branch. I'll just merge it all in. |
Known bug: search autocomplete doesn't work for multi-word searches
Auditors: @bbondy