Skip to content

Commit

Permalink
Fix formatting (#7290)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 1, 2024
1 parent 9d76a74 commit f156b35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/lib/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export const Tooltip = React.memo(
};

const show = (e) => {
if(e.type && e.type==="focus") setMultipleFocusEvents(true);
if (e.type && e.type === 'focus') setMultipleFocusEvents(true);

currentTargetRef.current = e.currentTarget;
const disabled = isDisabled(currentTargetRef.current);
const empty = isContentEmpty(isShowOnDisabled(currentTargetRef.current) && disabled ? currentTargetRef.current.firstChild : currentTargetRef.current);
Expand All @@ -201,8 +201,8 @@ export const Tooltip = React.memo(
};

const hide = (e) => {
if(e && e.type==="blur") setMultipleFocusEvents(false);
if (e && e.type === 'blur') setMultipleFocusEvents(false);

clearTimeouts();

if (visibleState) {
Expand Down

0 comments on commit f156b35

Please sign in to comment.