diff --git a/src/dzeio/Input/index.tsx b/src/dzeio/Input/index.tsx index 60bf7c1..cfcb6c4 100644 --- a/src/dzeio/Input/index.tsx +++ b/src/dzeio/Input/index.tsx @@ -97,7 +97,7 @@ export default class Input extends React.Component { baseProps.onWheel = (ev: React.WheelEvent) => ev.currentTarget.blur() } - if (this.props.type === 'select') { + if (this.props.type === 'select' && !this.props.readOnly) { input = ( ) + // select is readonly + } else if (this.props.type === 'select') { + input = ( + + ) } else if (this.props.type === 'textarea') { delete baseProps.ref input = (