diff --git a/Selectbox.js b/Selectbox.js index 636f5f6..9b907a6 100644 --- a/Selectbox.js +++ b/Selectbox.js @@ -219,6 +219,7 @@ export default class Selectbox extends React.PureComponent className={theme.input + (p.focused ? ' '+(theme.focused||'') : '') + (this.props.disabled ? ' '+(theme.disabled||'') : '') + + (this.props.readOnly ? ' '+(theme.readonly||'') : '') + (this.props.multiple ? ' '+(theme.multiple||'') : (this.props.allowClear ? ' '+(theme.withClear||'') : '')) + diff --git a/autocomplete.css b/autocomplete.css index 888b561..fcf0cd8 100644 --- a/autocomplete.css +++ b/autocomplete.css @@ -46,6 +46,11 @@ padding: 1px 0; } +.input.readonly, .input.readonly .inputElement +{ + cursor: pointer; +} + .suggestions { margin-top: 0;