Skip to content

[pickers] When using DatePicker and LuxonAdapter, changing prop adapterLocale does not influence the keyboard mask.  #6540

Description

@slowWriting

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version (alpha-3)

Current behavior 😯

When DatePicker is used together with LuxonThere there is a problem with using adapterLocale to influence the placeholder. It does not work. Additionally warning is shown:
Mask does not support numbers with variable length such as 'M'. Either use numbers with fix length or disable mask feature with 'disableMaskedInput' prop Falling down to uncontrolled no-mask input.

Context - #4755 (comment)

Expected behavior 🤔

Placeholder text should react to changing locale. Additionally no warnings in console would be nice.

Steps to reproduce 🕹

https://codesandbox.io/s/date-and-time-pickers-forked-fdfsxx?file=/src/App.tsx

Sorry for formatting, I created an issue from existing comment and there was template, my bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    l10nLocalization.scope: pickersChanges related to the date/time pickers.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions