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

Timespan remains highlighted after shiftPrevious #8548

Closed
kronaemmanuel opened this issue Feb 14, 2024 · 0 comments
Closed

Timespan remains highlighted after shiftPrevious #8548

kronaemmanuel opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@kronaemmanuel
Copy link

Steps:

schedulerPro.highlightTimeSpan({
  startDate: new Date(2022, 4, 25, 0, 0),
  endDate: new Date(2022, 4, 25, 23, 30),
  name: "Away"
})
  • Run schedulerPro.shiftPrevious() and schedulerPro.shiftNext(). If we go the prev day, the highlight is still there.

Forum post

Hi Team,
I am trying to highlight a day using highlightTimeSpan feature but its highlight for previous days as well, Can you please help me with it?, I have attached a video of the issue and here is the code I am using

if (schedulerProRef.current && schedulerProRef.current.instance) {
      const newDate = new Date(2024, 1, 14, 0, 0);
      if (newDate) {
        schedulerProRef.current.instance.highlightTimeSpan({
          startDate: newDate,
          endDate: new Date(2024, 1, 14, 23, 30),
          //surround: true,
          name: "Away",
        });
      } else {
        schedulerProRef.current.instance.unhighlightTimeSpans(true);
      }
    }

Regards,
Paul

@kronaemmanuel kronaemmanuel added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Feb 14, 2024
@matsbryntse matsbryntse self-assigned this Feb 14, 2024
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Feb 14, 2024
@matsbryntse matsbryntse added this to the 5.6.7 milestone Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants