How to prevent clicking and button presses to make modal disappear? #2649
-
I am trying to use a modal as a kind of loading icon spinner to be displayed when requesting information from the server that is to overlay the entire screen and prevent clicking from happening. Currently doing a simple modal like so: LoadingModal.svelte
Page using it:
This is working but if i click anywhere on the screen or press the escape key for example, the modal is gone. I know it is somehow possible to prevent clicking from making it disappear as shown in this example Does anyone know if this is possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not with Skeleton, I' afraid: https://www.skeleton.dev/utilities/modals#accessibility
You'll have to implement your own take on modals if you want to do this. |
Beta Was this translation helpful? Give feedback.
Not with Skeleton, I' afraid: https://www.skeleton.dev/utilities/modals#accessibility
You'll have to implement your own take on modals if you want to do this.