whizkydee / dropd

⚡️Zero-dependency minimalistic dropdown component for React and Vue.
https://npm.im/dropd-component
MIT License
73 stars 15 forks source link

All events are prevented when closeOnBlurFn is triggered from v1.0.2 #6

Closed whizkydee closed 5 years ago

whizkydee commented 5 years ago

These lines: react-dropd/index.js#L80-L81 and vue-dropd/index.vue#L149-L50 are totally irrelevant, and they have adverse effects...

For instance, when an <input> is focused, the event is prevented, so focus doesn't actually happen.

Also, it prevent's closeDropd on mousedown for all other dropdowns.