Replies: 2 comments
-
This is on purpose. The modals get stacked upon each other. I'll look into adding an option to disable the stacking. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It would be interesting to be able to open a pre-loaded content modal using another modal. @pascalbaljet Do you intend to allow that to happen? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Make sure both Splade packages (JS + PHP) are up-to-date and on the same version. For example, when using version 0.5.0 of the PHP package, you should use the same JavaScript package version.
Description:
When loading a modal from another modal, the original modal doesn't close.
Sometimes the behaviour may be that it is expected to close. We can fix this by adding
@click="modal.close"
to theLink
tag.However, when adding this to the body of the new modal, it fails. It fails when trying to read the
type
of the object, however because the modal was closed, this object is now null, and thetype
property does not exist on it. Therefore crashing the entire thing.Steps To Reproduce Issue:
Have two modals, both with
Link
s including@click="modal.close"
- when opening the second modal from the first, it crashes.Beta Was this translation helpful? Give feedback.
All reactions