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
I'm trying to reset a form of a dismissible modal using the onCloseEnd parameter. However, it seems that the resetLoginForm() is always being invoked by the code snippet below even if the modal is not dismissed yet. <div id="login-box" class="modal" materialize="modal" [materializeActions]="loginModal [materializeParams]="[{endingTop: '25%', onCloseEnd: resetLoginForm()}]">
The form becomes unusable since the form keeps on resetting.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered:
raintomista
changed the title
Callback function for onCloseEnd parameter is always invoked
Callback function for onCloseEnd parameter is always being invoked
May 22, 2018
Hi!
I'm trying to reset a form of a dismissible modal using the onCloseEnd parameter. However, it seems that the resetLoginForm() is always being invoked by the code snippet below even if the modal is not dismissed yet.
<div id="login-box" class="modal" materialize="modal" [materializeActions]="loginModal [materializeParams]="[{endingTop: '25%', onCloseEnd: resetLoginForm()}]">
The form becomes unusable since the form keeps on resetting.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: