Our state of the art Gantt chart


Post by rahulranjan »

HI
Whenever i select the month june in Custom Date Picker . It selects July (It happens first time after that if at same time only selected it selects june).

Steps to Produce

  1. Select task - Schedule
  2. Edit Task
  3. Custom Date - Select June Month Directly . And you will see it got selected July .
Attachments
MonthIssue.gif
MonthIssue.gif (998.92 KiB) Viewed 1055 times
advanced.rar
(2.13 MiB) Downloaded 87 times

Post by pmiklashevich »

Reproduced! Thanks for the report. Ticket here: https://github.com/bryntum/support/issues/1511

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Thanks
Any Work Round for now


Post by pmiklashevich »

You can override this private function of DatePicker. But please add a note to remove it as soon as the bug is fixed:

import DateHelper from '../../lib/Core/helper/DateHelper.js';
import DatePicker from '../../lib/Core/widget/DatePicker.js';
import Override from '../../lib/Core/mixin/Override.js';

class DatePickerOverride {
    static get target() {
        return {
            class      : DatePicker,
            product    : 'grid',
            minVersion : '1.0',
            maxVersion : '4.0.1'
        };
    }

onMonthPicked({ value, oldValue }) {
    this.activeDate = DateHelper.add(this.activeDate, value - oldValue, 'month');
}
}

Override.apply(DatePickerOverride);

Cheers!

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Thanks
One question How and where to implement in angular


Post by pmiklashevich »

It's up to you. The code should be executed once when the application starts. Note, imports should be adjusted according the way you import bryntum classes in your app.

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply