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: Don't use deprecated Event.path if composedPath() exists #535

Closed soe-j closed 2 years ago

soe-j commented 2 years ago

Hello! Thank you, I always use the awesome library.

Event.path is deprecated on Chrome since about May 3rd. https://chromestatus.com/feature/5726124632965120

But Internet Explorer has only Event.path. I tried that it works with both browsers.

fix #533

ndelvalle commented 2 years ago

@soe-j v-click-outside 3.2.0 published with your changes on it.

soe-j commented 2 years ago

Thank you very much!