@xaypay/tui 0.0.13 → 0.0.15
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/dist/index.es.js +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/src/components/input/index.js +1 -1
package/dist/index.es.js
CHANGED
|
@@ -404,12 +404,14 @@ const Input = ({
|
|
|
404
404
|
required,
|
|
405
405
|
disabled,
|
|
406
406
|
type,
|
|
407
|
+
onChange,
|
|
407
408
|
...props
|
|
408
409
|
}) => {
|
|
409
410
|
const [inputValue, setInputValue] = useState("");
|
|
410
411
|
|
|
411
412
|
const handleChange = event => {
|
|
412
413
|
setInputValue(event.target.value);
|
|
414
|
+
onChange ? onChange(event.target.value) : '';
|
|
413
415
|
};
|
|
414
416
|
|
|
415
417
|
let eMessage = "";
|
package/dist/index.js
CHANGED
|
@@ -415,12 +415,14 @@ const Input = ({
|
|
|
415
415
|
required,
|
|
416
416
|
disabled,
|
|
417
417
|
type,
|
|
418
|
+
onChange,
|
|
418
419
|
...props
|
|
419
420
|
}) => {
|
|
420
421
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
421
422
|
|
|
422
423
|
const handleChange = event => {
|
|
423
424
|
setInputValue(event.target.value);
|
|
425
|
+
onChange ? onChange(event.target.value) : '';
|
|
424
426
|
};
|
|
425
427
|
|
|
426
428
|
let eMessage = "";
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export const Input = ({
|
|
|
34
34
|
const [inputValue, setInputValue] = useState("");
|
|
35
35
|
const handleChange = (event) => {
|
|
36
36
|
setInputValue(event.target.value);
|
|
37
|
-
onChange(event.target.value);
|
|
37
|
+
onChange ? onChange(event.target.value) : '';
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
let eMessage = "";
|