Skip to content

Commit

Permalink
fix(picker): improve performance for limel-picker
Browse files Browse the repository at this point in the history
Before this fix, the following error would be thrown if a chip was
chosen and then removed in a limel-picker element:

```
Uncaught RangeError: Maximum call stack size exceeded
```
  • Loading branch information
Jens Gustafsson authored and adrianschmidt committed Sep 10, 2019
1 parent 76b6340 commit cdc60f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/chip-set/chip-set.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ export class ChipSet {
}`}
value={textValue}
onBlur={this.handleInputBlur}
onFocus={() => {
onFocus={event => {
event.stopPropagation();
this.editMode = true;
}}
onInput={this.handleTextInput}
Expand Down

0 comments on commit cdc60f2

Please sign in to comment.