Comparing version 1.4.4 to 1.4.5
@@ -27,4 +27,9 @@ export function hasAddon(props) { | ||
currentTarget.value = value; | ||
currentTarget.selectionStart = target.selectionStart; | ||
currentTarget.selectionEnd = target.selectionEnd; | ||
// Fill selection. Some type like `email` not support selection | ||
// https://github.com/ant-design/ant-design/issues/47833 | ||
if (typeof target.selectionStart === 'number' && typeof target.selectionEnd === 'number') { | ||
currentTarget.selectionStart = target.selectionStart; | ||
currentTarget.selectionEnd = target.selectionEnd; | ||
} | ||
return newEvent; | ||
@@ -31,0 +36,0 @@ } |
@@ -36,4 +36,9 @@ "use strict"; | ||
currentTarget.value = value; | ||
currentTarget.selectionStart = target.selectionStart; | ||
currentTarget.selectionEnd = target.selectionEnd; | ||
// Fill selection. Some type like `email` not support selection | ||
// https://github.com/ant-design/ant-design/issues/47833 | ||
if (typeof target.selectionStart === 'number' && typeof target.selectionEnd === 'number') { | ||
currentTarget.selectionStart = target.selectionStart; | ||
currentTarget.selectionEnd = target.selectionEnd; | ||
} | ||
return newEvent; | ||
@@ -40,0 +45,0 @@ } |
{ | ||
"name": "rc-input", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"description": "React input component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70644
1246