Closed tmaier closed 2 years ago
It would be great, if this controller would allow to close when the use clicks away.
I think you can achieve this with a classic event listener on document or window.
See https://stimulus.hotwired.dev/reference/actions#global-events
It would be great, if this controller would allow to close when the use clicks away.
How are others solving this?
https://www.npmjs.com/package/stimulus-reveal has a `data-reveal-away-value` attribute