This commit is contained in:
seb
2026-10-04 15:01:16 +02:00
parent 874d6c010f
commit 9146ebaba1
4 changed files with 675 additions and 492 deletions

View File

@@ -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