@momo-kits/foundation 0.169.16-beta.15 → 0.169.16-beta.17

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.
@@ -101,7 +101,9 @@ export const InputMoneyView = ({
101
101
  fontSize: scaledFontSize,
102
102
  fontFamily: inputFontFamily,
103
103
  };
104
- const hasCurrencyInPlaceholder = placeholder.endsWith(currency);
104
+ const hasCurrency = currency.length > 0;
105
+ const endsWithCurrency = placeholder.endsWith(currency);
106
+ const hasCurrencyInPlaceholder = hasCurrency && endsWithCurrency;
105
107
  const shouldShowCurrency = !!displayValue || hasCurrencyInPlaceholder;
106
108
  const shouldShowClearIcon = !!(showClearIcon && focused && displayValue);
107
109
  let inputPlaceholder = placeholder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.169.16-beta.15",
3
+ "version": "0.169.16-beta.17",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},