File tree 3 files changed +130
-84
lines changed
packages/react-widgets/src
3 files changed +130
-84
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,10 @@ const ComboboxImpl: Combobox = React.forwardRef(function Combobox<TDataItem>(
404
404
let completeType = filter ? ( 'list' as const ) : ( 'none' as const )
405
405
406
406
let popupOpen = currentOpen && ( ! hideEmptyPopup || ! ! data . length )
407
-
407
+ let inputReadOnly =
408
+ // @ts -ignore
409
+ inputProps ?. readOnly != null ? inputProps ?. readOnly : readOnly ;
410
+
408
411
return (
409
412
< Widget
410
413
{ ...elementProps }
@@ -432,7 +435,7 @@ const ComboboxImpl: Combobox = React.forwardRef(function Combobox<TDataItem>(
432
435
autoFocus = { autoFocus }
433
436
tabIndex = { tabIndex }
434
437
disabled = { isDisabled }
435
- readOnly = { isReadOnly }
438
+ readOnly = { inputReadOnly }
436
439
aria-busy = { ! ! busy }
437
440
aria-owns = { listId }
438
441
aria-autocomplete = { completeType }
Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ const DatePicker = React.forwardRef(
520
520
521
521
let shouldRenderList = useFirstFocusedRender ( focused , open ! )
522
522
523
- let inputReadOnly =
523
+ const inputReadOnly =
524
524
inputProps ?. readOnly != null ? inputProps ?. readOnly : readOnly
525
525
return (
526
526
< Widget
You can’t perform that action at this time.
0 commit comments