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

Range error in safari #622

Open
SohelKabir opened this issue Oct 5, 2023 · 2 comments
Open

Range error in safari #622

SohelKabir opened this issue Oct 5, 2023 · 2 comments

Comments

@SohelKabir
Copy link

Subject of the issue

Works fine on chrome but crashes in safari m1 pro.
image

[BUG] Bug Reproduce Steps

use it in safari that's it.

[BUG] Expected behaviour

Environment

Package Version: 1.4.0
React version: 18.2.0
Node version: 18.15.0
Browser: Safari Version 17.0 (19616.1.27.211.1)

@umakantp
Copy link

Please provide the sample code for replicating the error. Which component did you use and what were the props.

@JayWebtech
Copy link

Try this

setRange([
{
startDate: new Date(formattedStartDate.replace(/-/g, "/")),
endDate: new Date(formattedEndDate.replace(/-/g, "/")),
key: "selection",
},
]);

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

3 participants