Skip to content

highlightTimeSpans works even though the timeSpanHighlight feature is disabled #4574

@taauntik

Description

@taauntik

Forum post

Hi!

Here's how to reproduce:

v5.0.3

  • Load the https://bryntum.com/examples/gantt/highlight-time-spans/ example
  • Activate the "Highlight Timespans" button.
  • In the console, write gantt.features.timeSpanHighlight.disabled = true
  • The timespans disappear from the view
  • Now copy the highlightTimespans call from the code into the console:
gantt.highlightTimeSpans([
                {
                    name      : 'Beta',
surround: false,
taskRecord: gantt.tasks[0],
                    startDate : new Date(2019, 1, 17),
                    endDate   : new Date(2019, 2, 3)
                },
                {
                    name      : 'Go live',
                    startDate : new Date(2019, 2, 17),
                    endDate   : new Date(2019, 2, 31)
                }
            ]);

  • the timespans appear in the view
  • gantt.features.timeSpanHighlight.disabled is still true

I'd expect the timespans not to appear, i.e. highlightTimeSpans() to do nothing

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingforumIssues from forumresolvedFixed but not yet released (available in the nightly builds)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions