We should be using .bind(this) more when doing this.
This commit is contained in:
parent
c7e37b36cd
commit
ae828dfa9f
|
@ -50,8 +50,8 @@ export class KeyValueNewPage extends Page {
|
|||
|
||||
this.addKVNewForm.addEventListener("submit", function (e) {
|
||||
e.preventDefault();
|
||||
pageState.currentPage.newKVSecretHandleForm();
|
||||
});
|
||||
this.newKVSecretHandleForm();
|
||||
}.bind(this));
|
||||
}
|
||||
|
||||
newKVSecretHandleForm() {
|
||||
|
|
Loading…
Reference in a new issue