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

Wrong end date in month view #498

Open
iqqmuT opened this issue Jan 22, 2025 · 1 comment
Open

Wrong end date in month view #498

iqqmuT opened this issue Jan 22, 2025 · 1 comment

Comments

@iqqmuT
Copy link
Contributor

iqqmuT commented Jan 22, 2025

Steps to reproduce:

  1. Use the code below or open CodeSandBox
  2. Notice the end date for task "This should be longer task"
  3. Change to week view

Expected outcome:
The task has the same end date in all views.

Actual outcome:
The task has different end date in month and week views.

Image

Code:

const tasks = [
  {
    id: "001",
    name: "001",
    start: "2025-01-13",
    end: "2025-02-21",
    progress: 21.818181818181813,
  },
  {
    id: "002",
    name: "002",
    start: "2025-01-06",
    end: "2025-02-19",
    progress: 100,
  },
  {
    id: "003",
    name: "This should be longer task",
    start: "2024-11-29",
    end: "2025-02-18",
    progress: 100,
  },
  {
    id: "004",
    name: "004",
    start: "2024-12-05",
    end: "2025-03-28",
    progress: 100,
  },
  {
    id: "005",
    name: "005",
    start: "2024-11-18",
    end: "2025-02-21",
    progress: 100,
  },
  {
    id: "006",
    name: "006",
    start: "2024-11-01",
    end: "2025-03-27",
    progress: 53,
  },
  {
    id: "007",
    name: "007",
    start: "2024-10-22",
    end: "2025-01-17",
    progress: 100,
  },
  {
    id: "008",
    name: "008",
    start: "2024-11-04",
    end: "2025-03-07",
    progress: 78,
  },
];

new Gantt("#gantt", tasks, {
  view_mode: "Month",
  view_mode_select: true,
  infinite_padding: false,
});
@safwansamsudeen
Copy link
Collaborator

Thanks for opening this issue! Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants