From 0be57b5b888198232b2cf5d575acaf06b53bfef5 Mon Sep 17 00:00:00 2001 From: DmitriyB Date: Wed, 15 Feb 2023 15:58:00 +0500 Subject: [PATCH] optimaize focus on iframe --- src/components/ui/button/button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/button/button.tsx b/src/components/ui/button/button.tsx index 4dd8536..72c9bdb 100644 --- a/src/components/ui/button/button.tsx +++ b/src/components/ui/button/button.tsx @@ -22,7 +22,7 @@ export const Button: React.FC = ({ button, onClick, active }) => { e.target.blur()} + onFocus={(e) => e.target.blur()} /// disable default browser focus when key is pressed onHoverStart={() => setHover(true)} onHoverEnd={() => setHover(false)} className={