Skip to content

Commit

Permalink
fix: replace tabindex to string
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-ogi committed Oct 17, 2023
1 parent aac63d2 commit 3e489d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ContainerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export class ContainerController {
}
}

setTabindex(index: number | undefined): void {
this.inputHandlerLayer.setViewTabindex(index);
setTabindex(tabindex: string): void {
this.inputHandlerLayer.setViewTabindex(tabindex);
}

private _loadView(): void {
Expand Down
4 changes: 2 additions & 2 deletions src/InputHandlerLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export class InputHandlerLayer {
view.style.height = size.height + "px";
}

setViewTabindex(tabindex: number | undefined): void {
setViewTabindex(tabindex: string): void {
const view = this.view;
view.setAttribute("tabindex", tabindex == null ? "" : tabindex.toString());
view.setAttribute("tabindex", tabindex);
}

private _createInputView(width: number, height: number): HTMLDivElement {
Expand Down
2 changes: 1 addition & 1 deletion src/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class Platform implements pdi.Platform {
return this._audioManager.getMasterVolume();
}

setTabindex(tabindex: number | undefined): void {
setTabindex(tabindex: string): void {
this.containerController.setTabindex(tabindex);
}

Expand Down

0 comments on commit 3e489d8

Please sign in to comment.