Skip to content

Commit 817ea80

Browse files
committed
Use capturing event listeners
1 parent 77e8cd8 commit 817ea80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ReactTags.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ class ReactTags extends React.Component {
196196
</div>
197197
<div
198198
className={this.state.classNames.search}
199+
onInputCapture={this.onInput.bind(this)}
199200
onFocusCapture={this.onFocus.bind(this)}
200201
onBlurCapture={this.onBlur.bind(this)}
201-
onKeyDown={this.onKeyDown.bind(this)}
202-
onInput={this.onInput.bind(this)}>
202+
onKeyDown={this.onKeyDown.bind(this)}>
203203
<Input {...this.state}
204204
id={this.props.id}
205205
ref={(c) => { this.input = c }}

0 commit comments

Comments
 (0)