bind submitForm event listener to keep _editForm
This commit is contained in:
parent
b3c337da91
commit
9d5223cd71
1 changed files with 3 additions and 3 deletions
|
@ -484,9 +484,9 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
|
|||
|
||||
this._editForm = document.getElementById("edit-container-panel-form");
|
||||
const editLink = document.querySelector("#edit-container-ok-link");
|
||||
editLink.addEventListener("click", this._submitForm);
|
||||
editLink.addEventListener("submit", this._submitForm);
|
||||
this._editForm.addEventListener("submit", this._submitForm);
|
||||
editLink.addEventListener("click", this._submitForm.bind(this));
|
||||
editLink.addEventListener("submit", this._submitForm.bind(this));
|
||||
this._editForm.addEventListener("submit", this._submitForm.bind(this));
|
||||
},
|
||||
|
||||
_submitForm() {
|
||||
|
|
Loading…
Add table
Reference in a new issue