We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a18e51 commit b093a99Copy full SHA for b093a99
site/src/components/FeatureBadge/FeatureBadge.tsx
@@ -101,7 +101,9 @@ export const FeatureBadge: FC<FeatureBadgeProps> = ({
101
...delegatedProps
102
}) => {
103
// 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
+ // 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)
107
const [isBadgeHovering, setIsBadgeHovering] = useState(false);
108
const [isTooltipHovering, setIsTooltipHovering] = useState(false);
109
0 commit comments