Skip to content

Commit

Permalink
Make this work in preact.
Browse files Browse the repository at this point in the history
Without key prop the input element unmounted and remounted after input changed, and the "onblur" handler make the panel dismissed soon.
  • Loading branch information
2betop committed Sep 19, 2017
1 parent bd1fb2c commit a1862d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ class Select extends React.Component {
);
}
return (
<div className={ className }>
<div className={ className } key="input-wrap">
<input {...inputProps} />
</div>
);
Expand Down

0 comments on commit a1862d2

Please sign in to comment.