rc-input-number
Advanced tools
Comparing version 9.1.0 to 9.2.0
@@ -45,6 +45,6 @@ import { useRef } from 'react'; | ||
var startPos = value.length; | ||
if (value.endsWith(afterTxt)) { | ||
if (value.startsWith(beforeTxt)) { | ||
startPos = beforeTxt.length; | ||
} else if (value.endsWith(afterTxt)) { | ||
startPos = value.length - selectionRef.current.afterTxt.length; | ||
} else if (value.startsWith(beforeTxt)) { | ||
startPos = beforeTxt.length; | ||
} else { | ||
@@ -51,0 +51,0 @@ var beforeLastChar = beforeTxt[start - 1]; |
@@ -52,6 +52,6 @@ "use strict"; | ||
var startPos = value.length; | ||
if (value.endsWith(afterTxt)) { | ||
if (value.startsWith(beforeTxt)) { | ||
startPos = beforeTxt.length; | ||
} else if (value.endsWith(afterTxt)) { | ||
startPos = value.length - selectionRef.current.afterTxt.length; | ||
} else if (value.startsWith(beforeTxt)) { | ||
startPos = beforeTxt.length; | ||
} else { | ||
@@ -58,0 +58,0 @@ var beforeLastChar = beforeTxt[start - 1]; |
{ | ||
"name": "rc-input-number", | ||
"version": "9.1.0", | ||
"version": "9.2.0", | ||
"description": "React input-number component", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"classnames": "^2.2.5", | ||
"rc-input": "~1.5.0", | ||
"rc-input": "~1.6.0", | ||
"rc-util": "^5.40.1" | ||
@@ -60,3 +60,3 @@ }, | ||
"@testing-library/jest-dom": "^6.1.5", | ||
"@testing-library/react": "^14.0.0", | ||
"@testing-library/react": "^16.0.0", | ||
"@types/classnames": "^2.2.9", | ||
@@ -72,4 +72,4 @@ "@types/jest": "^29.2.4", | ||
"eslint": "^8.54.0", | ||
"eslint-plugin-jest": "^27.6.0", | ||
"eslint-plugin-unicorn": "^50.0.1", | ||
"eslint-plugin-jest": "^28.2.0", | ||
"eslint-plugin-unicorn": "^54.0.0", | ||
"expect.js": "~0.3.1", | ||
@@ -82,3 +82,3 @@ "father": "^4.1.1", | ||
"lint-staged": "^15.1.0", | ||
"np": "^9.2.0", | ||
"np": "^10.0.5", | ||
"rc-test": "^7.0.14", | ||
@@ -85,0 +85,0 @@ "rc-tooltip": "^6.0.1", |
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
81221
+ Addedrc-input@1.6.3(transitive)
- Removedrc-input@1.5.1(transitive)
Updatedrc-input@~1.6.0