Skip to content

Commit 56252a2

Browse files
committed
remove readonly
1 parent 56d4996 commit 56252a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/@react-aria/calendar/src/useCalendarCell.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ export interface CalendarCellAria {
4545
isPressed: boolean,
4646
/** Whether the cell is selected. */
4747
isSelected: boolean,
48-
/** Whether the cell is read only. */
49-
isReadOnly: boolean,
5048
/** Whether the cell is focused. */
5149
isFocused: boolean,
5250
/**
@@ -312,8 +310,7 @@ export function useCalendarCell(props: AriaCalendarCellProps, state: CalendarSta
312310
role: 'gridcell',
313311
'aria-disabled': !isSelectable || undefined,
314312
'aria-selected': isSelected || undefined,
315-
'aria-invalid': isInvalid || undefined,
316-
'aria-readonly': state.isReadOnly || undefined
313+
'aria-invalid': isInvalid || undefined
317314
},
318315
buttonProps: mergeProps(pressProps, {
319316
onFocus() {
@@ -351,7 +348,6 @@ export function useCalendarCell(props: AriaCalendarCellProps, state: CalendarSta
351348
}),
352349
isPressed,
353350
isFocused,
354-
isReadOnly: state.isReadOnly,
355351
isSelected,
356352
isDisabled,
357353
isUnavailable,

0 commit comments

Comments
 (0)