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

Update findbar state onInput #5786

Merged
merged 1 commit into from
Dec 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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