px-react-ui-components 1.0.18 → 1.0.19
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.
|
@@ -204,6 +204,9 @@ function MyInput({
|
|
|
204
204
|
|
|
205
205
|
// Eğer değer değişmediyse güncelleme yapma
|
|
206
206
|
if (newValue === myValue) return;
|
|
207
|
+
if (type == MyInputType.NUMBER && newValue) {
|
|
208
|
+
if (min && newValue < min) newValue = "";else if (max && newValue > max) newValue = "";
|
|
209
|
+
}
|
|
207
210
|
if (type === MyInputType.TEXT || type === MyInputType.TEXTAREA) {
|
|
208
211
|
newValue = newValue.trim();
|
|
209
212
|
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(' ');
|