Skip to content

Commit 0201c74

Browse files
authored
Merge pull request #4 from bold-commerce/select-on-focus-fix
select-on-focus-fix
2 parents 82d82ff + aa38090 commit 0201c74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/select/Select.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Select extends Component {
4444
{ 'stx-select--is-disabled': disabled },
4545
{ 'stx-select--is-read-only': readOnly },
4646
{ 'stx-select--is-loading': loading },
47-
{ 'stx-select--has-focus': hasFocus },
47+
{ 'stx-select--has-focus': this.state.hasFocus },
4848
{ 'stx-select--has-value': hasValue },
4949
{ 'stx-select--with-placeholder': placeholder },
5050
{ 'stx-select--alert': messageType === 'alert' || messageType === 'error' },
@@ -167,8 +167,6 @@ Select.propTypes = {
167167
/** The value for the option that is used as a placeholder */
168168
placeholderValue: PropTypes.string,
169169

170-
/** If the component has focus */
171-
hasFocus: PropTypes.bool,
172170
/** If the component has a value */
173171
hasValue: PropTypes.bool,
174172

0 commit comments

Comments
 (0)