Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Resizing issue with displayWeekend : false #167

Open
1 task done
Navid-gh opened this issue Oct 13, 2024 · 2 comments
Open
1 task done

Event Resizing issue with displayWeekend : false #167

Navid-gh opened this issue Oct 13, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Navid-gh
Copy link

Navid-gh commented Oct 13, 2024

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

@Navid-gh Navid-gh added the bug Something isn't working label Oct 13, 2024
@ansulagrawal
Copy link
Member

ansulagrawal commented Oct 17, 2024

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

@ansulagrawal
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants