[Modal] When onApprove called the form inside modal is destroyed #1559
-
Bug ReportMy modal is shown when you click on a button. The first time everything works as intended. The problems start when you click the approve button. Right before the modal is closed you can see that the form inside the modal is destroyed and "sent in the background". After that each time you click on the button to show the modal again the form is behind the modal. Steps to reproduce
Expected resultThe form inside the modal should be inside the modal each time. Actual resultJust the first time the form is rendered as expected. After that the form is behind the modal. Testcasehttps://jsfiddle.net/filozof555/8bxe53dc/5/ Screenshot (if possible)Versionjquery-3.5.1.min.js |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You are calling |
Beta Was this translation helpful? Give feedback.
-
Thank you! I was looking into this for hours and didn't see that typo... |
Beta Was this translation helpful? Give feedback.
-
No problem. Glad I was able to help. |
Beta Was this translation helpful? Give feedback.
You are calling
$('#user_form').modal('hide');
which should be$('#add_user_modal').modal('hide');
.