summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/HeaderButtonWithText.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'extension/react-app/src/components/HeaderButtonWithText.tsx')
-rw-r--r--extension/react-app/src/components/HeaderButtonWithText.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/extension/react-app/src/components/HeaderButtonWithText.tsx b/extension/react-app/src/components/HeaderButtonWithText.tsx
index d70a3d70..c4f22211 100644
--- a/extension/react-app/src/components/HeaderButtonWithText.tsx
+++ b/extension/react-app/src/components/HeaderButtonWithText.tsx
@@ -14,7 +14,11 @@ const HeaderButtonWithText = (props: HeaderButtonWithTextProps) => {
<HeaderButton
style={{ padding: "3px" }}
onMouseEnter={() => setHover(true)}
- onMouseLeave={() => setHover(false)}
+ onMouseLeave={() => {
+ setTimeout(() => {
+ setHover(false);
+ }, 100);
+ }}
onClick={props.onClick}
>
<span hidden={!hover}>{props.text}</span>