react-scheduler / react-big-schedule

React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React.
https://react-big-schedule.vercel.app/
MIT License
101 stars 23 forks source link

Event Resizing issue with displayWeekend : false #167

Open Navid-gh opened 1 month ago

Navid-gh commented 1 month ago

Checklist

Describe the bug

Resizing an event, especially on its end causes a bug in the resource when the displayWeekend : false. it jumps suddenly to some random place in the horizontal space, for example, if I try to update its end to 27 but it jumps from 27 to 24 or 25 it only happens when displayWeekend : false is used otherwise it will work fine

Reproduction Link/Code

    useEffect(() => {
        schedulerData = new SchedulerData(dayjs().format(DATE_FORMAT), ViewType.Week, false, false, {
            besidesWidth: window.innerWidth <= 1600 ? 100 : 350,
            responsiveByParent: true,
            dayMaxEvents: 99,
            weekMaxEvents: 9669,
            monthMaxEvents: 9669,
            quarterMaxEvents: 6599,
            yearMaxEvents: 9956,
            customMaxEvents: 9965,
            eventItemPopoverTrigger: 'click',
            displayWeekend: false
        });
        //@ts-ignore
        schedulerData.localeDayjs.locale('en');

        dispatch({ type: 'INITIALIZE', payload: schedulerData });
    }, []);

Steps to reproduce

  1. Initialize the table with displayWeekend : false
  2. try to resize the event on its end especially

Operating System

Windows

Browser

Chrome

React version

18

react-big-schedule version

4.4.1

Additional Information

No response

ansulagrawal commented 1 month ago

@Navid-gh yes there is some issue. I am debugging it will fix it and raise it soon

ansulagrawal commented 1 month ago

@Navid-gh issue is been fixed in version 4.4.3 you can check it out.