Skip to content

Commit 1e49059

Browse files
authored
fix(signin button): signin button is clickable when token is autofilled by browser (#9610)
* fix(signin button): signin button is clickable when token is autofilled by browser * fix: fix unit test & using input event instead of change event
1 parent 2f436f0 commit 1e49059

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/web/src/login/component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe('LoginComponent', () => {
153153
// set inputs and fire change events to trigger onChange()
154154
const token = fixture.debugElement.query(By.css(queries.token)).nativeElement;
155155
token.value = loginToken;
156-
token.dispatchEvent(new Event('keyup'));
156+
token.dispatchEvent(new Event('input'));
157157

158158
submit();
159159

modules/web/src/login/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
placeholder="Bearer token"
4848
type="password"
4949
required
50-
(keyup)="onChange($event)"
50+
(input)="onChange($event)"
5151
/>
5252
</mat-form-field>
5353
<mat-error

0 commit comments

Comments
 (0)