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

Commit face405

Browse files
Liunkaecezaraugusto
Liunkae
authored andcommitted
Update findbar state onInput (#5786)
Updates the state whenever the input field changes regardless of the reason. Fixes #5753
1 parent 2728303 commit face405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/components/findbar.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FindBar extends ImmutableComponent {
2121
this.onClear = this.onClear.bind(this)
2222
this.onKeyDown = this.onKeyDown.bind(this)
2323
this.onContextMenu = this.onContextMenu.bind(this)
24-
this.onKeyUp = this.onKeyUp.bind(this)
24+
this.onInput = this.onInput.bind(this)
2525
this.onFindPrev = this.onFindPrev.bind(this)
2626
this.onFindNext = this.onFindNext.bind(this)
2727
this.onCaseSensitivityChange = this.onCaseSensitivityChange.bind(this)
@@ -32,7 +32,7 @@ class FindBar extends ImmutableComponent {
3232
return windowStore.getFrame(this.props.frameKey)
3333
}
3434

35-
onKeyUp (e) {
35+
onInput (e) {
3636
windowActions.setFindDetail(this.frame, Immutable.fromJS({
3737
searchString: e.target.value,
3838
caseSensitivity: this.isCaseSensitive
@@ -221,7 +221,7 @@ class FindBar extends ImmutableComponent {
221221
ref={(node) => { this.searchInput = node }}
222222
onFocus={this.onInputFocus}
223223
onKeyDown={this.onKeyDown}
224-
onKeyUp={this.onKeyUp} />
224+
onInput={this.onInput} />
225225
<span className='searchStringContainerIcon fa fa-times findClear'
226226
onClick={this.onClear} />
227227
</div>

0 commit comments

Comments
 (0)