px-react-ui-components 1.0.28 → 1.0.29
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.
|
@@ -246,22 +246,16 @@ function MyInput({
|
|
|
246
246
|
if (onMouseUp != null) onMouseUp(e);
|
|
247
247
|
};
|
|
248
248
|
const onMyMouseEnter = e => {
|
|
249
|
-
// MONEY input için
|
|
250
|
-
if (type
|
|
251
|
-
e.target.value = moneyFormat(myValue);
|
|
252
|
-
e.value = moneyFormat(myValue);
|
|
253
|
-
} else {
|
|
249
|
+
// MONEY input için displayValue'yu koru, sadece diğer tipler için değer ata
|
|
250
|
+
if (type !== MyInputType.MONEY) {
|
|
254
251
|
e.target.value = myValue;
|
|
255
252
|
e.value = myValue;
|
|
256
253
|
}
|
|
257
254
|
if (onMouseEnter != null) onMouseEnter(e);
|
|
258
255
|
};
|
|
259
256
|
const onMyMouseLeave = e => {
|
|
260
|
-
// MONEY input için
|
|
261
|
-
if (type
|
|
262
|
-
e.target.value = moneyFormat(myValue);
|
|
263
|
-
e.value = moneyFormat(myValue);
|
|
264
|
-
} else {
|
|
257
|
+
// MONEY input için displayValue'yu koru, sadece diğer tipler için değer ata
|
|
258
|
+
if (type !== MyInputType.MONEY) {
|
|
265
259
|
e.target.value = myValue;
|
|
266
260
|
e.value = myValue;
|
|
267
261
|
}
|