Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Nov 29, 2024
1 parent ec32af7 commit 9a2d4d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions docs/data/date-pickers/custom-field/BrowserV7Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import {
DatePickerProps,
} from '@mui/x-date-pickers/DatePicker';
import { unstable_useDateField as useDateField } from '@mui/x-date-pickers/DateField';
import {
useClearableField,
UseClearableFieldResponse,
} from '@mui/x-date-pickers/hooks';
import { useClearableField } from '@mui/x-date-pickers/hooks';
import { BaseSingleInputPickersTextFieldProps } from '@mui/x-date-pickers/models';
import { Unstable_PickersSectionList as PickersSectionList } from '@mui/x-date-pickers/PickersSectionList';

Expand All @@ -39,7 +36,7 @@ interface BrowserTextFieldProps
React.HTMLAttributes<HTMLDivElement>,
keyof BaseSingleInputPickersTextFieldProps<true>
>,
UseClearableFieldResponse<BaseSingleInputPickersTextFieldProps<true>> {}
BaseSingleInputPickersTextFieldProps<true> {}

const BrowserTextField = React.forwardRef(
(props: BrowserTextFieldProps, ref: React.Ref<unknown>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ If you want to track the opening of the picker, you should use the `onOpen` / `o

## Render the opening button at the start of the input

You can use the `openPickerButtonPosition` on the `field` slot to set the opening button at the start of the input (on the left in lef-to-right direction, on the right in left-to-right direction).
You can use the `openPickerButtonPosition` on the `field` slot to set the opening button at the start of the input (on the left in lef-to-right direction, on the right in left-to-right direction):

{{"demo": "StartEdgeOpeningButton.js"}}

Expand Down

0 comments on commit 9a2d4d8

Please sign in to comment.