Skip to content

Commit 328b5f4

Browse files
authored
Added Workaround for Safari specific issue with pointerevents and tooltips (#335)
Signed-off-by: Benjamin Perez <[email protected]>
1 parent ffaa55d commit 328b5f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/ActionsList/ActionsList.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ const ActionsList: FC<ActionsListProps> = ({ sx, items, title }) => {
8888
icon={actionItem.icon}
8989
onClick={actionItem.action}
9090
disabled={actionItem.disabled}
91+
style={{
92+
pointerEvents: actionItem.disabled ? "none" : "initial",
93+
}}
9194
/>
9295
</Tooltip>
9396
</li>

src/components/Tooltip/Tooltip.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ OnDisabledElement.args = {
127127
tooltip: <span>Some tooltip Label</span>,
128128
placement: "top",
129129
children: (
130-
<Button id={"testButton"} disabled>
130+
<Button id={"testButton"} disabled style={{ pointerEvents: "none" }}>
131131
Button
132132
</Button>
133133
),

0 commit comments

Comments
 (0)