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
- const newValue = e.target.value;
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
- myValue = newValue.trim();
207
- if (uppercase) myValue = myValue.toLocaleUpperCase("TR");else if (lowercase) myValue = myValue.toLocaleLowerCase("TR");else if (firstUppercase) myValue = myValue.split(' ').map(word => word.charAt(0).toLocaleUpperCase("TR") + word.slice(1).toLocaleLowerCase("TR")).join(' ');
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "px-react-ui-components",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "commonjs",