You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are instructions in the documentation for how to programmatically show/close the modal. See here. The show example doesn't fully explain how the show method functions and doesn't mention the second parameter (config).
If a user uses the show method they assume that it will open the modal with the same config as they used to init the modal. This is not the case, all config settings from the original init are replaced when using the show method.
I specifically faced this issue when trying to get my modal to close with a close animation. The awaitCloseAnimation property was reset when I used the show method.
Solution
Add a config parameter to the documentation and explicity state that when using that method you need to pass in a fresh config.
The text was updated successfully, but these errors were encountered:
@celsowhite Your comment was a lifesaver! I was wondering for half an hour what is happening, why it does not work. Documentation is really insufficient.
Issue
There are instructions in the documentation for how to programmatically show/close the modal. See here. The show example doesn't fully explain how the show method functions and doesn't mention the second parameter (config).
If a user uses the show method they assume that it will open the modal with the same config as they used to init the modal. This is not the case, all config settings from the original init are replaced when using the show method.
I specifically faced this issue when trying to get my modal to close with a close animation. The awaitCloseAnimation property was reset when I used the show method.
Solution
Add a config parameter to the documentation and explicity state that when using that method you need to pass in a fresh config.
The text was updated successfully, but these errors were encountered: