onChange(index)}
>
{option}
diff --git a/src/components/ui/TabList.tsx b/src/components/ui/TabList.tsx
index 6f5576b46..5217ff917 100644
--- a/src/components/ui/TabList.tsx
+++ b/src/components/ui/TabList.tsx
@@ -75,7 +75,7 @@ const TabList: FC
= ({
return (
diff --git a/src/hooks/useContextMenuHandlers.ts b/src/hooks/useContextMenuHandlers.ts
index 14b7acb3c..ca4c9b3a3 100644
--- a/src/hooks/useContextMenuHandlers.ts
+++ b/src/hooks/useContextMenuHandlers.ts
@@ -31,14 +31,14 @@ const useContextMenuHandlers = (
const handleBeforeContextMenu = useLastCallback((e: React.MouseEvent) => {
if (!isMenuDisabled && e.button === 2) {
requestMutation(() => {
- addExtraClass(e.target as HTMLElement, 'no-selection');
+ removeExtraClass(e.target as HTMLElement, 'text-selection');
});
}
});
const handleContextMenu = useLastCallback((e: React.MouseEvent) => {
requestMutation(() => {
- removeExtraClass(e.target as HTMLElement, 'no-selection');
+ addExtraClass(e.target as HTMLElement, 'text-selection');
});
if (isMenuDisabled || (shouldDisableOnLink && (e.target as HTMLElement).matches('a[href]'))) {
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 9dd9f9daa..a324d00b7 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -111,9 +111,8 @@ body.cursor-ew-resize {
visibility: hidden;
}
-.no-selection {
- user-select: none;
- -webkit-user-select: none !important;
+.text-selection {
+ user-select: text !important;
}
.clearfix::after {
@@ -164,6 +163,8 @@ body.cursor-ew-resize {
}
body:not(.is-ios) {
+ user-select: none; // On iOS, disallowing user selection breaks focus in text input fields
+
.custom-scroll {
&::-webkit-scrollbar {
width: 0.375rem;