File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @stackflow/link " : minor
3+ ---
4+
5+ feat(link): disable long press behavior in iOS
Original file line number Diff line number Diff line change @@ -100,7 +100,13 @@ export function Link<K extends RegisteredActivityName>(props: LinkProps<K>) {
100100 } ;
101101
102102 return (
103- < a ref = { props . ref } href = { href } onClick = { onClick } { ...anchorProps } >
103+ < a
104+ ref = { props . ref }
105+ href = { href }
106+ onClick = { onClick }
107+ draggable = "false" // Disable long press behavior by default in iOS
108+ { ...anchorProps }
109+ >
104110 { props . children }
105111 </ a >
106112 ) ;
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ export const Link: TypeLink = forwardRef(
134134 ref = { mergeRefs ( ref , anchorRef ) }
135135 href = { href }
136136 onClick = { onClick }
137+ draggable = "false" // Disable long press behavior by default in iOS
137138 { ...anchorProps }
138139 >
139140 { props . children }
You can’t perform that action at this time.
0 commit comments