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

Function focusCell

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

Source from the content-addressed store, hash-verified

224
225 // Sets focus to a specific cell date
226 function focusCell(date: CalendarDate) {
227 date = constrainValue(date, minValue, maxValue);
228 setFocusedDate(date);
229 }
230
231 function normalizeValue(newValue: CalendarDate) {
232 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