Skip to content

Commit

Permalink
fix(filter): fix setFocus method. #10136
Browse files Browse the repository at this point in the history
  • Loading branch information
driskull committed Aug 23, 2024
1 parent f9857f1 commit eafc160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ describe("calcite-filter", () => {
});

describe("is focused", () => {
focusable("calcite-filter");
focusable("calcite-filter", {
shadowFocusTargetSelector: "calcite-input",
});
});

describe("disabled", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class Filter
async setFocus(): Promise<void> {
await componentFocusable(this);

this.el?.focus();
return this.textInput?.setFocus();
}

// --------------------------------------------------------------------------
Expand Down

0 comments on commit eafc160

Please sign in to comment.