Hi, I have experienced a problem with a rubber banding effect when trying to change the state of the schedule. I included the code and screenshot of the problem as a reference. Please let me know if I'm doing something wrong or need some clarification. Thanks
As attached, the datetime of the highlighted bar is not updated correctly (displayed as jan 26) but it is moved to the correct location (jan 19).
this cause a rubberband effect when the scheduler is interacted with where the highlighted batch is moved back to the 26th.
Thanks for having a look and any suggestion anyone might have!
const scheduler = useRef(null);
const [dataset, setDataset] = useState({...})
const [file, setFile] = useState("")
const [filemap, setFilemap] = useState([])
useEffect(() => {
if (file === "") {
setFile('production_list_cleaned.csv');
}
console.log("Updating File using: ", file)
axios.get("/api/data", {params: {filename: file}}).then(response => {
setDataset(response.data);
setFilemap(response.data.onlyfiles);
}).catch (err => console.log(err));
},[file]);