Closed marchellodev closed 1 year ago
Remove the backdrop or at least any on:click={dialog.close}
that will cause it to close when you click on it (i.e. outside of the dialog).
I think it would still allow escape to close, not sure you'd want to prevent that?
Some dialogs (for example, a loading dialog) should be forced and user should not be able to dismiss them in any way
I don't think that's really a dialog though, more of a splash / progress display. Even if it might happen to be styled in a similar way, a proper dialog used for input / action should always be cancellable.
If using something means disabling and removing all the features of that thing, it's possibly a sign that it's being mis-used.
Hello, how do I make it so that the opened dialog can only be closed with me manually evoking
dialog.close()
? The library's dialog component uses only theTransition
component (notDialog
like in the official headlessui implementation) so I have no idea how to do this.