Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2718 from david-gang/find-branch
Browse files Browse the repository at this point in the history
#323 - differentiate between external and internal navigation when hiding findbar
  • Loading branch information
bbondy committed Jul 26, 2016
2 parents 823dbf0 + e4e9613 commit 26061bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions js/components/findbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ class FindBar extends ImmutableComponent {
// Redo search if details have changed
this.onFindFirst()
}
if (this.props.frame.get('location') !== prevProps.frame.get('location')) {
this.props.onFindHide()
}
}

onKeyDown (e) {
Expand Down
4 changes: 4 additions & 0 deletions js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,11 @@ class Frame extends ImmutableComponent {
// XXX: loadstart probably does not need to be called twice anymore.
loadStart(e)
})

this.webview.addEventListener('did-navigate', (e) => {
if (this.props.frame.get('findbarShown')) {
this.onFindHide()
}
for (let message in this.notificationCallbacks) {
appActions.hideMessageBox(message)
}
Expand Down

0 comments on commit 26061bf

Please sign in to comment.