Skip to content

Issue selecting Month or Year on IOS browsers (both Safari and Chrome) #115

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

Open
stefanpopescu opened this issue Mar 31, 2025 · 2 comments

Comments

@stefanpopescu
Copy link

There is an issue with selecting the month or year on an IOS web browser (Safari and Chrome), i've checked also on an android web browser and it works.
Please check the recording attached.

ScreenRecording_03-31-2025.18-16-30_1.mov

I checked to see if there is any error logged in the console, but nothing.
Any idea why this is happening?

This is how i'm using the component, nothing special:

  <DateInput
      bind:value={requestObj.BirthDate}
      minDate={new Date("1900-01-01")}
      maxDate={new Date()}
      wrapperClass="border border-1 px-1 input-bordered"
      inputClass="bg-white p-1"
  />
@probablykasper
Copy link
Owner

I don't have an iOS device. Can you submit a PR with a fix?

There was some work here trying to fix the issue (see the comments) #58

@probablykasper
Copy link
Owner

Worth checking BlueprintJS's source code to see how they do it: https://blueprintjs.com/docs/#datetime2/date-input3

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