Skip to content

Commit

Permalink
chore: fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Aug 17, 2024
1 parent 45e16db commit 8897f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expect-puppeteer/src/matchers/toFill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function selectAll(element: ElementHandle<Element>) {
if (element.setSelectionRange) {
try {
element.setSelectionRange(0, element.value.length);
} catch (e) {
} catch {
// setSelectionRange throws an error for inputs: number/date/time/etc
// we can just focus them and the content will be selected
element.focus();
Expand Down

0 comments on commit 8897f60

Please sign in to comment.