@popsure/dirty-swan 0.41.5 → 0.41.6

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/cjs/index.js CHANGED
@@ -8352,7 +8352,10 @@ var CurrencyInput = function (_a) {
8352
8352
  // eslint-disable-next-line
8353
8353
  }, [value]);
8354
8354
  require$$0.useEffect(function () {
8355
- if (shadowValue) {
8355
+ if (shadowValue === '' && value) {
8356
+ onChange === null || onChange === void 0 ? void 0 : onChange(null);
8357
+ }
8358
+ else if (shadowValue) {
8356
8359
  onChange === null || onChange === void 0 ? void 0 : onChange(reverseFormatInput(shadowValue));
8357
8360
  }
8358
8361
  // eslint-disable-next-line