You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using the following as a temporary workaround:
const[schedule,setSchedule]=React.useState([])// ...consthandleChange=(newSchedule)=>{// setSchedule(schedule) // has duplicates - below will filter date to be unique.setSchedule([...newSet(schedule.map(date=>+date))].map(timestamp=>newDate(timestamp)));}
Thanks :) - Really appreciate your work!
The text was updated successfully, but these errors were encountered:
nktnet1
changed the title
Possible Bugs with Duplicates Date
Possible Bug with Duplicates Date on Drag Selection
Jan 12, 2022
nktnet1
changed the title
Possible Bug with Duplicates Date on Drag Selection
Possible Bug with Duplicated Dates on Drag Selection
Jan 12, 2022
Hi,
I believe there's an issue with the dates being duplicated in the date array passed into "onChange".
This can be reproduced by:
Array will contain ["Cell A", "Cell B", "Cell A"].
Problem reproducible in sandbox:
https://codesandbox.io/s/objective-pateu-y8lr0?file=/src/App.js
Currently using the following as a temporary workaround:
Thanks :) - Really appreciate your work!
The text was updated successfully, but these errors were encountered: