Skip to content

Commit

Permalink
Fix resolveButtonType for SSR
Browse files Browse the repository at this point in the history
Fixes #94
  • Loading branch information
rgossiaux committed May 16, 2022
1 parent a6c6a8e commit 219d289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/resolve-button-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export function resolveButtonType(
let tag = props.as ?? "button";
if (typeof tag === "string" && tag.toLowerCase() === "button")
return "button";
if (ref instanceof HTMLButtonElement) return "button";
if (ref && ref instanceof HTMLButtonElement) return "button";
return undefined;
}

0 comments on commit 219d289

Please sign in to comment.