Skip to content

Commit

Permalink
[docs] Add callout for Luxon throwOnInvalid support (mui#13621)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas <llukas.tyla@gmail.com>
Co-authored-by: Flavien DELANGLE <flaviendelangle@gmail.com>
  • Loading branch information
2 people authored and thomasmoon committed Sep 6, 2024
1 parent 2dcbd3f commit 4cc19cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/data/date-pickers/adapters-locale/adapters-locale.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ import { AdapterLuxon } from '@mui/x-date-pickers/AdapterLuxon';

{{"demo": "LocalizationLuxon.js"}}

:::warning
`AdapterLuxon` does not support `Settings.throwOnInvalid = true` [setting](https://moment.github.io/luxon/api-docs/index.html#settingsthrowoninvalid).

👍 Upvote [issue #11853](https://github.com/mui/mui-x/issues/11853) if you need support for it.

Don't hesitate to leave feedback on how you would like the data entry to behave.
:::

### With `moment`

For `moment`, import the locale and then pass its name to `LocalizationProvider`:
Expand Down

0 comments on commit 4cc19cd

Please sign in to comment.