Closed kzipp closed 4 months ago
The hope here is to keep a dialog/modal open when clicking outside of the panel.
Not a default or breaking change, just another option.
I added an additional directive of panelWithoutClose, cloned the handlePanel function, and removed the @click.outside line from it.
This can be implemented as a modifier like .noclose would probably be more inline with how Alpine works elsewhere
.noclose
also, directives can't have capitals. attributes in normal HTML are all lowercase.
The hope here is to keep a dialog/modal open when clicking outside of the panel.
Not a default or breaking change, just another option.
I added an additional directive of panelWithoutClose, cloned the handlePanel function, and removed the @click.outside line from it.