Skip to content

Commit

Permalink
fix(input): readonly input on select-one
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jun 30, 2024
1 parent d040d2e commit f2b7249
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export default CustomElement
},
ariaAutocompleteAttrValue({ _hasListbox, autocompleteList, _isSelect }) {
if (!_hasListbox) return null;
if (!_isSelect) return null;
if (_isSelect) return null;
if (autocompleteList != null) {
return 'both';
}
Expand All @@ -550,8 +550,9 @@ export default CustomElement
control.setAttribute('aria-expanded', '{ariaExpandedAttrValue}');
control.setAttribute('type', '{controlTypeAttrValue}');
control.setAttribute('role', '{controlRoleAttrValue}');
control.setAttribute('is-select', '{controlIsSelect}');
control.setAttribute('readonly', '{controlReadonlyAttrValue}');
control.setAttribute('autocomplete', 'off');
control.setAttribute('is-select', '{controlIsSelect}');
trailingIcon.setAttribute('mdw-if', '{computedTrailingIcon}');
trailingIcon.setAttribute('icon', '{computedTrailingIcon}');
shape.setAttribute('trailing-icon', '{computedTrailingIcon}');
Expand Down

0 comments on commit f2b7249

Please sign in to comment.