danieljpalmer / alptail

A collection of frontend components using Tailwind.css and Alpine.js.
GNU General Public License v3.0
312 stars 30 forks source link

Modal - don't close when clicked inside and let go of mouse button outside #1

Closed piotrpog closed 4 years ago

piotrpog commented 4 years ago

That is something that is very annoying if modal contains ay kind of form. In that case, I often click the mouse on text input and let go of it when I move the cursor a bit - when the cursor is already outside modal. And this causes a modal to close.

danieljpalmer commented 4 years ago

@piotrpog Addressed in latest commit! Changed from @click.away to @mousedown.away.