diff --git a/examples/account-selector.js b/examples/account-selector.js
index 1a3a5781ff..d014f2f820 100644
--- a/examples/account-selector.js
+++ b/examples/account-selector.js
@@ -36,10 +36,21 @@ const AccountSelectorExample = () => {
);
}
+ function renderNoSuggestion() {
+ return (
+
{
- this.inputField = el
+ this.inputField = el;
}}
aria-invalid={ ariaInvalid } // add aria with hoc?
aria-autocomplete='list'
/>
{ value.length > 0 &&
}
-
this.inputField.focus()} className={dropdownIconClassName()}>
+
this.inputField.focus()} className={this.dropdownIconClassName()}>
@@ -90,7 +102,9 @@ BaseSelector.propTypes = {
placeholder: PropTypes.string,
onBlur: PropTypes.func,
onFocus: PropTypes.func,
- ariaInvalid: PropTypes.bool
+ ariaInvalid: PropTypes.bool,
+ resetLabel: PropTypes.string.isRequired,
+ onReset: PropTypes.func.isRequired
};
BaseSelector.defaultProps = {
diff --git a/src/suggestion/suggestion-list-container.js b/src/suggestion/suggestion-list-container.js
index 49aba6fa27..b14e92fd18 100644
--- a/src/suggestion/suggestion-list-container.js
+++ b/src/suggestion/suggestion-list-container.js
@@ -138,10 +138,7 @@ class SuggestionListContainer extends React.Component {
return (
this.onKeyDown(evt)}>
- {this.props.suggestions.length ? (
- )
- : null
- }
+
);
diff --git a/src/suggestion/suggestion-list.js b/src/suggestion/suggestion-list.js
index e25b81d29e..bfc199a583 100644
--- a/src/suggestion/suggestion-list.js
+++ b/src/suggestion/suggestion-list.js
@@ -61,7 +61,7 @@ export default class SuggestionList extends Component {
onSelect={onSelect}
/>
)) :
- renderNoSuggestion()
+
{renderNoSuggestion()}
}
);