Skip to content

Commit 3938558

Browse files
committed
feat: CRMMON-8029 focus on button
Signed-off-by: louisua <[email protected]>
1 parent 3693413 commit 3938558

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

projects/angular-ui/src/lib/file/file-input.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
level="secondary"
1414
[disabled]="disabled"
1515
(click)="uploader.click()"
16-
aria-hidden="true"
17-
tabIndex="-1"
1816
>
1917
{{ intl.dropzoneButtonLabel }}
2018
</button>

projects/angular-ui/src/lib/file/file-input.component.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -152,26 +152,6 @@ export class BaoFileInputComponent
152152
}
153153
}
154154

155-
@HostListener('window:keyup.tab')
156-
tabKeyEvent() {
157-
if (document.activeElement.id === this.inputId) {
158-
this.renderer.addClass(
159-
this.dropzoneElement.nativeElement,
160-
'dropzone-focus'
161-
);
162-
}
163-
}
164-
165-
@HostListener('window:keyup.shift.tab')
166-
shiftTabKeyEvent() {
167-
if (document.activeElement.id === this.inputId) {
168-
this.renderer.addClass(
169-
this.dropzoneElement.nativeElement,
170-
'dropzone-focus'
171-
);
172-
}
173-
}
174-
175155
public ngAfterContentInit(): void {
176156
this._errorForm.changes.subscribe(() => this.setErrorTextsAttribute());
177157
if (!this.inputId) {

0 commit comments

Comments
 (0)