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

Selecting month automatically selects day #31

Open
1mehdifaraji opened this issue Sep 26, 2024 · 3 comments
Open

Selecting month automatically selects day #31

1mehdifaraji opened this issue Sep 26, 2024 · 3 comments

Comments

@1mehdifaraji
Copy link

Can't select day after selecting the month because it selects the day after clicking the month if the day is under the month label.

import { InputDatePicker } from "jalaali-react-date-picker";

 <InputDatePicker
          onChange={(e) => {
            console.log(e);
            if (e) setIsOpen(false);
          }}
          open={isOpen}
          renderInput={(params) => (
            <OutlinedTextField
              fullWidth
              label="تاریخ تولد"
              readOnly
              inputMode="none"
              onFocus={() => {
                setIsOpen(true);
              }}
              style={{ width: "100%" }}
            />
          )}
Screen.Recording.1403-07-06.at.01.09.14.mov
@alirezahematidev
Copy link
Owner

alirezahematidev commented Sep 27, 2024 via email

@1mehdifaraji
Copy link
Author

@alirezahematidev The problem is when I select the month, If there is a day number behind the month element it will select the day also. It has nothing to with onChange or onOpenChange properties.

@1mehdifaraji
Copy link
Author

Screen.Recording.1403-07-06.at.15.09.54.mov

As you can see in the captured video of the behavior, selecting month will select the day under it's label. This is an unexpected behavior and I think it's an overflow issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants