Skip to content

Commit b093a99

Browse files
committed
docs: update wording on comment
1 parent 9a18e51 commit b093a99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/components/FeatureBadge/FeatureBadge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ export const FeatureBadge: FC<FeatureBadgeProps> = ({
101101
...delegatedProps
102102
}) => {
103103
// Not a big fan of having two hover variables, but we need to make sure the
104-
// badge maintains its hover styling while the mouse is inside the tooltip
104+
// badge maintains its hover styling while the mouse is inside the tooltip.
105+
// If we had one variable, we could have race conditions based on how events
106+
// decide to bubble (especially with custom event handlers)
105107
const [isBadgeHovering, setIsBadgeHovering] = useState(false);
106108
const [isTooltipHovering, setIsTooltipHovering] = useState(false);
107109

0 commit comments

Comments
 (0)