File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
></ion-input >
10
10
11
11
<script >
12
- const input = input .querySelector (' ion-input' );
12
+ const input = document .querySelector (' ion-input' );
13
13
14
14
input .addEventListener (' ionInput' , (ev ) => validate (ev));
15
15
input .addEventListener (' ionBlur' , () => markTouched ());
Original file line number Diff line number Diff line change 8
8
></ion-textarea >
9
9
10
10
<script >
11
- const textarea = textarea .querySelector (' ion-textarea' );
11
+ const textarea = document .querySelector (' ion-textarea' );
12
12
13
13
textarea .addEventListener (' ionInput' , (ev ) => validate (ev));
14
14
textarea .addEventListener (' ionBlur' , () => markTouched ());
27
27
28
28
if (value === ' ' ) return ;
29
29
30
- validateEmail (value) ? textarea .classList .add (' ion-valid' ) : input .classList .add (' ion-invalid' );
30
+ validateEmail (value) ? textarea .classList .add (' ion-valid' ) : textarea .classList .add (' ion-invalid' );
31
31
};
32
32
33
33
const markTouched = () => {
Original file line number Diff line number Diff line change 9
9
></ion-input >
10
10
11
11
<script >
12
- const input = input .querySelector (' ion-input' );
12
+ const input = document .querySelector (' ion-input' );
13
13
14
14
input .addEventListener (' ionInput' , (ev ) => validate (ev));
15
15
input .addEventListener (' ionBlur' , () => markTouched ());
Original file line number Diff line number Diff line change 8
8
></ion-textarea >
9
9
10
10
<script >
11
- const textarea = textarea .querySelector (' ion-textarea' );
11
+ const textarea = document .querySelector (' ion-textarea' );
12
12
13
13
textarea .addEventListener (' ionInput' , (ev ) => validate (ev));
14
14
textarea .addEventListener (' ionBlur' , () => markTouched ());
27
27
28
28
if (value === ' ' ) return ;
29
29
30
- validateEmail (value) ? textarea .classList .add (' ion-valid' ) : input .classList .add (' ion-invalid' );
30
+ validateEmail (value) ? textarea .classList .add (' ion-valid' ) : textarea .classList .add (' ion-invalid' );
31
31
};
32
32
33
33
const markTouched = () => {
You can’t perform that action at this time.
0 commit comments