Skip to content

Event Resizing issue with displayWeekend : false #167

Open
@Navid-gh

Description

@Navid-gh

Checklist

  • I've verified that I'm running react-big-schedule latest version.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions