jasonsalzman / react-add-to-calendar

A simple, customizable, and reusable Add to Calendar button component for React
https://jasonsalzman.github.io/react-add-to-calendar/
MIT License
181 stars 123 forks source link

Dropdown doesn't close on click-outside in IOS #40

Closed brusni4ka closed 5 years ago

brusni4ka commented 5 years ago

https://github.com/jasonsalzman/react-add-to-calendar/blob/ea3f1d9e8cdaa81dd45e8cf7826a39c09e3a8895/src/ReactAddToCalendar.js#L45 Probably you should add touchstart event here. Thanks for your decision but personally I faced with the problem of bad flexibility of your component. It would be better if there was a possibility to control your component from outside and pass optionsOpen not just for initialization.