From 70b2d82fd89e50731274720283c2ecdbbcc2dea0 Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Mon, 10 May 2021 10:11:37 -0700 Subject: [PATCH 1/2] Skip setting Selection range for inputs and textareas --- src/utils/edit/selectionRange.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/edit/selectionRange.ts b/src/utils/edit/selectionRange.ts index 328cddcf..c5adbddb 100644 --- a/src/utils/edit/selectionRange.ts +++ b/src/utils/edit/selectionRange.ts @@ -107,7 +107,13 @@ export function setSelectionRange( const selection = element.ownerDocument.getSelection() // istanbul ignore else - if (selection) { + if ( + selection && + // Skip setting the range for and