petalframework / petal_components

Phoenix + Live View HEEX Components
https://petal.build/components
MIT License
768 stars 84 forks source link

Add `type=button` to close modal button #252

Closed tegon closed 10 months ago

tegon commented 10 months ago

To avoid submitting a form by mistake when the user clicks to close the modal. Similar to https://github.com/petalframework/petal_components/pull/246