darianstlex / react-sm-select

React Multi/Single Select
https://darianstlex.github.io/react-sm-select
MIT License
6 stars 2 forks source link

IE/Edge: prevent autoclose on option click #5

Closed Trinitonn closed 5 years ago

Trinitonn commented 5 years ago

Hi again,

IE/Edge does not support event.composedPath. The function eventPath will always return false clicking on an option.

I did a workaround using a check on whether or not you are "hovering" the MultiSelect when the handleDocumentClick is fired. Works for me :)

Trinitonn commented 5 years ago

..git issues;)

darianstlex commented 5 years ago

fix was released