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

Commit

Permalink
Update findbar state onInput (#5786)
Browse files Browse the repository at this point in the history
Updates the state whenever the input field changes regardless of the reason.

Fixes #5753
  • Loading branch information
Liunkae authored and cezaraugusto committed Dec 7, 2016
1 parent 2728303 commit face405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/components/findbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FindBar extends ImmutableComponent {
this.onClear = this.onClear.bind(this)
this.onKeyDown = this.onKeyDown.bind(this)
this.onContextMenu = this.onContextMenu.bind(this)
this.onKeyUp = this.onKeyUp.bind(this)
this.onInput = this.onInput.bind(this)
this.onFindPrev = this.onFindPrev.bind(this)
this.onFindNext = this.onFindNext.bind(this)
this.onCaseSensitivityChange = this.onCaseSensitivityChange.bind(this)
Expand All @@ -32,7 +32,7 @@ class FindBar extends ImmutableComponent {
return windowStore.getFrame(this.props.frameKey)
}

onKeyUp (e) {
onInput (e) {
windowActions.setFindDetail(this.frame, Immutable.fromJS({
searchString: e.target.value,
caseSensitivity: this.isCaseSensitive
Expand Down Expand Up @@ -221,7 +221,7 @@ class FindBar extends ImmutableComponent {
ref={(node) => { this.searchInput = node }}
onFocus={this.onInputFocus}
onKeyDown={this.onKeyDown}
onKeyUp={this.onKeyUp} />
onInput={this.onInput} />
<span className='searchStringContainerIcon fa fa-times findClear'
onClick={this.onClear} />
</div>
Expand Down

0 comments on commit face405

Please sign in to comment.