@xaypay/tui 0.0.14 → 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 CHANGED
@@ -411,7 +411,7 @@ const Input = ({
411
411
 
412
412
  const handleChange = event => {
413
413
  setInputValue(event.target.value);
414
- onChange(event.target.value);
414
+ onChange ? onChange(event.target.value) : '';
415
415
  };
416
416
 
417
417
  let eMessage = "";
package/dist/index.js CHANGED
@@ -422,7 +422,7 @@ const Input = ({
422
422
 
423
423
  const handleChange = event => {
424
424
  setInputValue(event.target.value);
425
- onChange(event.target.value);
425
+ onChange ? onChange(event.target.value) : '';
426
426
  };
427
427
 
428
428
  let eMessage = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -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 = "";