ndelvalle / v-click-outside

🔲 Vue directive to react on clicks outside an element without stopping the event propagation
MIT License
967 stars 88 forks source link

fix: IE11 to use click event #540

Open soe-j opened 2 years ago

soe-j commented 2 years ago

Hi.

I can not use v-click-outside well on Internet Explorer 11.

It adds touchstart events on IE11. IE11 doesn't support it. https://developer.mozilla.org/en-US/docs/Web/API/Document/touchstart_event

navigator.msMaxTouchPoints is grater than 0 on IE11. navigator.MaxTouchPoints is the same.  2022-05-17 11 16 13

I think it is enough to judge only whether there is ontouchstart. https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/ontouchstart