Skip to content

Commit

Permalink
SVGSVGElement > SVGElement
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Jul 13, 2022
1 parent 81af6ca commit 736b74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/tooltip/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function clearContextId() {
*
* @param params
*/
function useTooltip<ElementType extends HTMLElement | SVGSVGElement>({
function useTooltip<ElementType extends HTMLElement | SVGElement>({
id: idProp,
onPointerEnter,
onPointerMove,
Expand Down Expand Up @@ -651,7 +651,7 @@ function useDisabledTriggerOnSafari({
}: {
disabled: boolean | undefined;
isVisible: boolean;
ref: React.RefObject<HTMLElement | SVGSVGElement>;
ref: React.RefObject<HTMLElement | SVGElement>;
}) {
React.useEffect(() => {
if (
Expand Down Expand Up @@ -758,7 +758,7 @@ function isTooltipVisible(id: string, initial?: boolean) {
////////////////////////////////////////////////////////////////////////////////
// TYPES

interface TriggerParams<ElementType extends HTMLElement | SVGSVGElement> {
interface TriggerParams<ElementType extends HTMLElement | SVGElement> {
"aria-describedby"?: string | undefined;
"data-state": string;
"data-reach-tooltip-trigger": string;
Expand Down

0 comments on commit 736b74a

Please sign in to comment.