@pnkx-lib/ui 1.9.284 → 1.9.285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/fields/Input.js +2 -3
- package/package.json +1 -1
package/es/fields/Input.js
CHANGED
|
@@ -1253,7 +1253,7 @@ const Input = (props) => {
|
|
|
1253
1253
|
const [isComposing, setIsComposing] = useState(false);
|
|
1254
1254
|
const capitalizeAfterPeriod = (text) => {
|
|
1255
1255
|
if (!text) return;
|
|
1256
|
-
return text
|
|
1256
|
+
return text?.toLowerCase()?.replace(
|
|
1257
1257
|
/(^\s*\w|(?<=\.\s*)\w)/g,
|
|
1258
1258
|
(match) => match.toUpperCase()
|
|
1259
1259
|
);
|
|
@@ -1262,8 +1262,7 @@ const Input = (props) => {
|
|
|
1262
1262
|
const handleChange = useCallback(
|
|
1263
1263
|
(e) => {
|
|
1264
1264
|
onChange?.(e);
|
|
1265
|
-
|
|
1266
|
-
afterOnChange?.(toLowerCaseValue ? valueOnchange : e.target.value);
|
|
1265
|
+
afterOnChange?.(e.target.value);
|
|
1267
1266
|
},
|
|
1268
1267
|
[onChange, afterOnChange, isComposing]
|
|
1269
1268
|
);
|