We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca7855 commit db923b8Copy full SHA for db923b8
packages/react-dom/src/client/ReactInputSelection.js
@@ -26,7 +26,9 @@ export function hasSelectionCapabilities(elem) {
26
const nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
27
return (
28
nodeName &&
29
- ((nodeName === 'input' && elem.type === 'text') ||
+ ((nodeName === 'input' && (
30
+ elem.type === 'text' || elem.type == "email" || elem.type == "tel" || elem.type == "url")
31
+ ) ||
32
nodeName === 'textarea' ||
33
elem.contentEditable === 'true')
34
);
0 commit comments