@@ -39,6 +45,8 @@ FlagBox.propTypes = {
flagRef: PropTypes.func,
innerFlagRef: PropTypes.func,
countryClass: PropTypes.string.isRequired,
+ isSelected: PropTypes.bool,
+ index: PropTypes.number,
}
FlagBox.defaultProps = {
diff --git a/src/components/FlagDropDown.js b/src/components/FlagDropDown.js
index c6a1078fa..285ea468b 100644
--- a/src/components/FlagDropDown.js
+++ b/src/components/FlagDropDown.js
@@ -24,6 +24,7 @@ export default class FlagDropDown extends Component {
changeHighlightCountry: PropTypes.func,
titleTip: PropTypes.string,
refCallback: PropTypes.func.isRequired,
+ flagDropdownProps: PropTypes.object, // eslint-disable-line react/forbid-prop-types
}
genSelectedDialCode = () => {
@@ -59,6 +60,7 @@ export default class FlagDropDown extends Component {
preferredCountries,
highlightedCountry,
changeHighlightCountry,
+ countryCode,
} = this.props
return (
@@ -76,6 +78,7 @@ export default class FlagDropDown extends Component {
preferredCountries={preferredCountries}
highlightedCountry={highlightedCountry}
changeHighlightCountry={changeHighlightCountry}
+ selectedCountryCode={countryCode}
/>
)
}
@@ -89,16 +92,25 @@ export default class FlagDropDown extends Component {
titleTip,
dropdownContainer,
showDropdown,
+ highlightedCountry,
+ flagDropdownProps,
} = this.props
return (
{this.genSelectedDialCode()}
diff --git a/src/components/IntlTelInput.js b/src/components/IntlTelInput.js
index cd0f2d73d..ac81e8085 100644
--- a/src/components/IntlTelInput.js
+++ b/src/components/IntlTelInput.js
@@ -1302,6 +1302,7 @@ class IntlTelInput extends Component {
preferredCountries={this.preferredCountries}
highlightedCountry={this.state.highlightedCountry}
titleTip={titleTip}
+ flagDropdownProps={this.props.flagDropdownProps}
/>