Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop Pickers in v5.0.0-alpha25 doesn't show #24982

Closed
2 tasks done
Chojecki opened this issue Feb 17, 2021 · 1 comment
Closed
2 tasks done

Desktop Pickers in v5.0.0-alpha25 doesn't show #24982

Chojecki opened this issue Feb 17, 2021 · 1 comment
Labels
component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@Chojecki
Copy link

Hi, when I'm trying to use some of desktop pickers like DatePicker or TimePicker, I can't open pickers. When I'm clicking on textfield or icon, the div with role dialog appears for a second in DOM and disappear instantly.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Desktop Pickers not showing.

Steps to Reproduce 🕹

Steps:

  1. Crate react app by CRA
  2. Add material ui 5.0.0-alpha25
  3. Add material ui lab@next
  4. Add date-fns
  5. Copy any desktop picker from documentation example
    like:
import * as React from "react";
import TextField from "@material-ui/core/TextField";
import AdapterDateFns from "@material-ui/lab/AdapterDateFns";
import LocalizationProvider from "@material-ui/lab/LocalizationProvider";

import { DesktopTimePicker } from "@material-ui/lab";

export default function AppDatePicker() {
  const [value, setValue] = React.useState<Date | null>(null);

  return (
    <LocalizationProvider dateAdapter={AdapterDateFns}>
      <DesktopTimePicker
        label="For desktop"
        value={value}
        onChange={(newValue) => {
          setValue(newValue);
        }}
        renderInput={(params) => <TextField {...params} margin="normal" />}
      />
    </LocalizationProvider>
  );
}
  1. Try to open picker

Mobile pickers works ok.

@Chojecki Chojecki added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 17, 2021
@oliviertassinari oliviertassinari added duplicate This issue or pull request already exists component: pickers This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 17, 2021
@oliviertassinari
Copy link
Member

Duplicate of #24874

@oliviertassinari oliviertassinari marked this as a duplicate of #24874 Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants