Skip to content
Snippets Groups Projects
Commit 26423b64 authored by Sandro Lutz's avatar Sandro Lutz Committed by scmoritz
Browse files

Change from onchange to oninput

parent 18f6ace9
No related branches found
No related tags found
1 merge request!25Complete profile page
......@@ -60,7 +60,7 @@ class changePasswordForm {
type: 'password',
placeholder: 'Password',
value: this.password1,
onchange: (e) => {
oninput: (e) => {
this.password1 = e.target.value;
this.validate();
},
......@@ -71,7 +71,7 @@ class changePasswordForm {
type: 'password',
placeholder: 'Repeat',
value: this.password2,
onchange: (e) => {
oninput: (e) => {
this.password2 = e.target.value;
this.validate();
},
......@@ -110,7 +110,7 @@ class rfidForm {
type: 'text',
placeholder: 'RFID',
value: this.rfid,
onchange: (e) => {
oninput: (e) => {
this.rfid = e.target.value;
this.valid = /^\d{6}$/g.test(this.rfid);
log(`rfid valid: ${this.valid}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment