px-react-ui-components 1.0.16 → 1.0.17
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.
|
@@ -198,13 +198,13 @@ function MyInput({
|
|
|
198
198
|
if (onRemoveImage != null) onRemoveImage();
|
|
199
199
|
};
|
|
200
200
|
const handleChange = (0, _react.useCallback)(e => {
|
|
201
|
-
|
|
201
|
+
let newValue = e.target.value;
|
|
202
202
|
|
|
203
203
|
// Eğer değer değişmediyse güncelleme yapma
|
|
204
204
|
if (newValue === myValue) return;
|
|
205
205
|
if (type === MyInputType.TEXT || type === MyInputType.TEXTAREA) {
|
|
206
|
-
|
|
207
|
-
if (uppercase)
|
|
206
|
+
newValue = newValue.trim();
|
|
207
|
+
if (uppercase) newValue = newValue.toLocaleUpperCase("TR");else if (lowercase) newValue = newValue.toLocaleLowerCase("TR");else if (firstUppercase) newValue = newValue.split(' ').map(word => word.charAt(0).toLocaleUpperCase("TR") + word.slice(1).toLocaleLowerCase("TR")).join(' ');
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
// Typing durumunu güncelle
|