@transferwise/components 46.0.4 → 46.0.5
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/build/index.esm.js +1 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -5
- package/build/index.js.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/moneyInput/MoneyInput.js +1 -3
- package/src/moneyInput/MoneyInput.story.tsx +23 -7
package/build/index.esm.js
CHANGED
|
@@ -7862,7 +7862,6 @@ class MoneyInput extends Component {
|
|
|
7862
7862
|
this.formatMessage = this.props.intl.formatMessage;
|
|
7863
7863
|
this.state = {
|
|
7864
7864
|
searchQuery: '',
|
|
7865
|
-
selectedOption: this.props.selectedCurrency,
|
|
7866
7865
|
formattedAmount: formatAmountIfSet(props.amount, props.selectedCurrency.currency, locale, props.maxLengthOverride),
|
|
7867
7866
|
locale
|
|
7868
7867
|
};
|
|
@@ -7969,9 +7968,6 @@ class MoneyInput extends Component {
|
|
|
7969
7968
|
}
|
|
7970
7969
|
handleSelectChange = value => {
|
|
7971
7970
|
this.handleSearchChange('');
|
|
7972
|
-
this.setState({
|
|
7973
|
-
selectedOption: value
|
|
7974
|
-
});
|
|
7975
7971
|
this.props.onCurrencyChange(value);
|
|
7976
7972
|
};
|
|
7977
7973
|
handleCustomAction = () => {
|
|
@@ -8060,7 +8056,7 @@ class MoneyInput extends Component {
|
|
|
8060
8056
|
className: classNames(this.style('input-group-btn'), this.style('amount-currency-select-btn')),
|
|
8061
8057
|
children: /*#__PURE__*/jsx(SelectInput, {
|
|
8062
8058
|
items: selectOptions,
|
|
8063
|
-
value:
|
|
8059
|
+
value: selectedCurrency,
|
|
8064
8060
|
compareValues: "currency",
|
|
8065
8061
|
renderValue: (currency, withinTrigger) => {
|
|
8066
8062
|
return /*#__PURE__*/jsx(SelectInputOptionContent, {
|