@xaypay/tui 0.0.79 → 0.0.80

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
@@ -2637,6 +2637,8 @@ const NewFile = ({
2637
2637
  }
2638
2638
  };
2639
2639
  const handleClick = () => {
2640
+ inpRef.current.files = null;
2641
+ inpRef.current.value = null;
2640
2642
  if (!image) {
2641
2643
  inpRef.current.click();
2642
2644
  }
package/dist/index.js CHANGED
@@ -2667,6 +2667,8 @@ const NewFile = ({
2667
2667
  }
2668
2668
  };
2669
2669
  const handleClick = () => {
2670
+ inpRef.current.files = null;
2671
+ inpRef.current.value = null;
2670
2672
  if (!image) {
2671
2673
  inpRef.current.click();
2672
2674
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -135,7 +135,7 @@ export const NewFile = ({
135
135
  setImage('pdf');
136
136
  } else {
137
137
  setImage(URL.createObjectURL(file[0]));
138
- }
138
+ }
139
139
  } else {
140
140
  setImage(null);
141
141
  setError(formatError);
@@ -153,6 +153,8 @@ export const NewFile = ({
153
153
  };
154
154
 
155
155
  const handleClick = () => {
156
+ inpRef.current.files = null;
157
+ inpRef.current.value = null;
156
158
  if (!image) {
157
159
  inpRef.current.click();
158
160
  }