#How to open modal by id?
5 messages · Page 1 of 1 (latest)
You can open modals using modal name, but this requires registration of modals with ModalProvider
id is always dynamic as far as I see
https://mantine.dev/others/modals/#context-modals
thanks I see that. I have a use case in which a modal opens another modal . what I want is to close the first modal by clicking the button . the 2nd modal will open and closes the first one. and on the second modal onClose event I want to open the first one again.
is this possible?
Every opened modal is added as first element in modals queue
So I think you can just close the last opened modal and you will see the previous one