File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ export let SaveButton = forwardRef<
9
9
return (
10
10
< button
11
11
ref = { ref }
12
+ // this makes it so the button takes focus on clicks in safari I can't
13
+ // remember if this is the proper workaround or not, it's been a while!
14
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
15
+ // https://bugs.webkit.org/show_bug.cgi?id=22261
16
+ tabIndex = { 0 }
12
17
{ ...props }
13
18
className = "text-sm rounded-lg text-left p-2 font-medium text-white bg-brand-blue"
14
19
/>
@@ -23,6 +28,7 @@ export let CancelButton = forwardRef<
23
28
< button
24
29
ref = { ref }
25
30
type = "button"
31
+ tabIndex = { 0 }
26
32
{ ...props }
27
33
className = "text-sm rounded-lg text-left p-2 font-medium hover:bg-slate-200 focus:bg-slate-200"
28
34
/>
You can’t perform that action at this time.
0 commit comments