u
This commit is contained in:
@@ -71,8 +71,9 @@ export default class TextInput extends Component {
|
||||
} = this.props;
|
||||
|
||||
const isSelect = Boolean(rest.select);
|
||||
const effectiveReadOnly = isSelect
|
||||
? (propReadOnly ?? slotProps?.htmlInput?.readOnly ?? inputProps?.readOnly)
|
||||
const isAutocomplete = Boolean(inputProps?.['aria-autocomplete'] || rest['aria-autocomplete']);
|
||||
const effectiveReadOnly = (isSelect || isAutocomplete)
|
||||
? (propReadOnly ?? slotProps?.htmlInput?.readOnly ?? inputProps?.readOnly ?? false)
|
||||
: (propReadOnly ?? slotProps?.htmlInput?.readOnly ?? inputProps?.readOnly ?? this.state.readOnly);
|
||||
|
||||
const htmlInput = isSelect
|
||||
|
||||
Reference in New Issue
Block a user