mirror of https://github.com/zulip/zulip.git
d72280f1c7
This commit fixes multiple invite-user-email sent to user. In invite-user-form, submit-form click handler is getting called multiple times on submit-invite-user-form event, which results in multiple invitation mail to user. Because, we registered same submit click handler multiple times. Submit form click handler is registered when user opens invite-user modal. If user opens modal multiple times, click handler get registered multiple times. We should register this click handler on `exports.initialize` function instead of `exports.launch` function. This modal is unlike other modal, where we append html when user opens modal. In this case, we append modal on initialization. We only show modal when user opens. So on initialization, modal element already exists, register click handler on submit-btn element, on intialization not when user open modal. Fixes #10354. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
icons/fonts | ||
images | ||
js | ||
locale | ||
styles | ||
templates | ||
third | ||
ts | ||
.gitignore | ||
favicon.ico | ||
node_modules |