Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable the default callout in ios safari #22216

Merged
merged 10 commits into from
Jul 24, 2023
2 changes: 2 additions & 0 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import getPopOverVerticalOffset from './getPopOverVerticalOffset';
import overflowXHidden from './overflowXHidden';
import CONST from '../CONST';
import cursor from './utilities/cursor';
import callout from './utilities/callout';
import userSelect from './utilities/userSelect';
import textUnderline from './utilities/textUnderline';

Expand Down Expand Up @@ -133,6 +134,7 @@ const webViewStyles = {
borderColor: themeColors.border,
borderRadius: variables.componentBorderRadiusNormal,
borderWidth: 1,
...callout.calloutNone,
},

p: {
Expand Down
5 changes: 5 additions & 0 deletions src/styles/utilities/callout/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
calloutNone: {
'-webkit-touch-callout': 'none',
},
};
3 changes: 3 additions & 0 deletions src/styles/utilities/callout/index.native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
calloutNone: {},
};