@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.js
CHANGED
|
@@ -7896,7 +7896,6 @@ class MoneyInput extends React.Component {
|
|
|
7896
7896
|
this.formatMessage = this.props.intl.formatMessage;
|
|
7897
7897
|
this.state = {
|
|
7898
7898
|
searchQuery: '',
|
|
7899
|
-
selectedOption: this.props.selectedCurrency,
|
|
7900
7899
|
formattedAmount: formatAmountIfSet(props.amount, props.selectedCurrency.currency, locale, props.maxLengthOverride),
|
|
7901
7900
|
locale
|
|
7902
7901
|
};
|
|
@@ -8003,9 +8002,6 @@ class MoneyInput extends React.Component {
|
|
|
8003
8002
|
}
|
|
8004
8003
|
handleSelectChange = value => {
|
|
8005
8004
|
this.handleSearchChange('');
|
|
8006
|
-
this.setState({
|
|
8007
|
-
selectedOption: value
|
|
8008
|
-
});
|
|
8009
8005
|
this.props.onCurrencyChange(value);
|
|
8010
8006
|
};
|
|
8011
8007
|
handleCustomAction = () => {
|
|
@@ -8094,7 +8090,7 @@ class MoneyInput extends React.Component {
|
|
|
8094
8090
|
className: classNames__default.default(this.style('input-group-btn'), this.style('amount-currency-select-btn')),
|
|
8095
8091
|
children: /*#__PURE__*/jsxRuntime.jsx(SelectInput, {
|
|
8096
8092
|
items: selectOptions,
|
|
8097
|
-
value:
|
|
8093
|
+
value: selectedCurrency,
|
|
8098
8094
|
compareValues: "currency",
|
|
8099
8095
|
renderValue: (currency, withinTrigger) => {
|
|
8100
8096
|
return /*#__PURE__*/jsxRuntime.jsx(SelectInputOptionContent, {
|