Prevent removing textarea.form.submit handler with opts.leaveSubmitMethodAlone
This commit is contained in:
parent
a34b8b3416
commit
399d430ee4
|
@ -48,7 +48,7 @@ export function fromTextArea(textarea, options) {
|
|||
textarea.style.display = ""
|
||||
if (textarea.form) {
|
||||
off(textarea.form, "submit", save)
|
||||
if (typeof textarea.form.submit == "function")
|
||||
if (!options.leaveSubmitMethodAlone && typeof textarea.form.submit == "function")
|
||||
textarea.form.submit = realSubmit
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue