react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

Range error in safari

Open SohelKabir opened this issue 1 year ago • 2 comments

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)

SohelKabir avatar Oct 05 '23 14:10 SohelKabir

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

umakantp avatar Dec 29 '23 11:12 umakantp

Try this

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

JayWebtech avatar Aug 09 '24 13:08 JayWebtech