[fields] Move the logic of the fields opening to be in the field instead of in the picker #14787
Labels
breaking change
component: pickers
This is the name of the generic UI component, not the React module!
feature: Keyboard editing
Related to the pickers keyboard edition
v8.x
Part of #13188
Use the new
PickersFieldContext
and its newonViewToggle
(name under discussion in #14606) to move all the opening logic from the picker hooks (useDesktopPicker
,useMobileRangePicker
etc...) to the field component.This comes with several benefits:
useEnrichedRangePickerFieldProps
anymore (might need to keep it for v8 depending on the time we have but the goal is to eventually drop this hook)The main downside I see is that the field include some code that is not needed when used as standalone. But I think the top priority should always be the quality of the pickers over the quality of the field.
Search keywords:
The text was updated successfully, but these errors were encountered: