mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(ripple): z-index adjusted (#2853)
* fix(ripple): z-index adjusted * fix(ripple): z-index changed
This commit is contained in:
parent
e9fef9bd92
commit
765c04e2a5
5
.changeset/wicked-panthers-relax.md
Normal file
5
.changeset/wicked-panthers-relax.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/ripple": patch
|
||||
---
|
||||
|
||||
Fix press event on iOS, the ripple zIndex was preventing the press event
|
||||
@ -36,7 +36,9 @@ const Ripple: FC<RippleProps> = (props) => {
|
||||
borderRadius: "100%",
|
||||
transformOrigin: "center",
|
||||
pointerEvents: "none",
|
||||
zIndex: 10,
|
||||
overflow: "hidden",
|
||||
inset: 0,
|
||||
zIndex: 0,
|
||||
top: ripple.y,
|
||||
left: ripple.x,
|
||||
width: `${ripple.size}px`,
|
||||
|
||||
@ -24,8 +24,8 @@ export function useRipple(props: UseRippleProps = {}) {
|
||||
{
|
||||
key: getUniqueID(prevRipples.length.toString()),
|
||||
size,
|
||||
x: event.clientX - rect.x - size / 2,
|
||||
y: event.clientY - rect.y - size / 2,
|
||||
x: event.clientX - rect.left - size / 2,
|
||||
y: event.clientY - rect.top - size / 2,
|
||||
},
|
||||
]);
|
||||
}, []);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user