MCPcopy Create free account
hub / github.com/adobe/react-spectrum / focusCell

Function focusCell

packages/react-stately/src/calendar/useCalendarState.ts:227–230  ·  view source on GitHub ↗
(date: CalendarDate)

Source from the content-addressed store, hash-verified

225
226 // Sets focus to a specific cell date
227 function focusCell(date: CalendarDate) {
228 date = constrainValue(date, minValue, maxValue);
229 setFocusedDate(date);
230 }
231
232 function normalizeValue(newValue: CalendarDate) {
233 let constrained = constrainValue(newValue, minValue, maxValue);

Callers 9

setFocusedDateFunction · 0.70
focusNextDayFunction · 0.70
focusPreviousDayFunction · 0.70
focusNextRowFunction · 0.70
focusPreviousRowFunction · 0.70
focusSectionStartFunction · 0.70
focusSectionEndFunction · 0.70
focusNextSectionFunction · 0.70
focusPreviousSectionFunction · 0.70

Calls 2

constrainValueFunction · 0.90
setFocusedDateFunction · 0.85

Tested by

no test coverage detected