Skip to content

Commit

Permalink
fix(chip set): stop input change event from propagating
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroth authored and adrianschmidt committed Sep 10, 2019
1 parent 24bbe71 commit 6045075
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/chip-set/chip-set.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ export class ChipSet {
onBlur={this.handleInputBlur}
onFocus={this.handleTextFieldFocus}
onInput={this.handleTextInput}
// Some browsers emit a change event on input elements, we need to stop
// that event from propagating since we are emiting our own change event
onChange={event => {
event.stopPropagation();
}}
/>
</div>
<label
Expand Down

0 comments on commit 6045075

Please sign in to comment.