Skip to content

Commit 17bdcd8

Browse files
author
Maksim Zakharov
committed
fix(scheduler): set getFirstDayOfWeek instead of option('firstDayOfWeek')
1 parent 021cf05 commit 17bdcd8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/devextreme/js/__internal/scheduler/m_scheduler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { dateUtilsTs } from '@ts/core/utils/date';
3737

3838
import { createA11yStatusContainer } from './a11y_status/a11y_status_render';
3939
import { getA11yStatusText } from './a11y_status/a11y_status_text';
40+
import type { AppointmentFormScheduler } from './appointment_popup/form';
4041
import { AppointmentForm } from './appointment_popup/form';
4142
import { AppointmentPopup } from './appointment_popup/popup';
4243
import AppointmentCollection from './appointments/m_appointment_collection';
@@ -1132,7 +1133,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
11321133
}
11331134

11341135
createAppointmentForm() {
1135-
const scheduler = {
1136+
const scheduler: AppointmentFormScheduler = {
11361137
getResourceById: () => this.resourceManager.resourceById,
11371138
getDataAccessors: () => this._dataAccessors,
11381139
// @ts-expect-error
@@ -1141,7 +1142,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
11411142
getEditingConfig: () => this.editing,
11421143
getResourceManager: () => this.resourceManager,
11431144

1144-
getFirstDayOfWeek: () => this.option('firstDayOfWeek'),
1145+
getFirstDayOfWeek: () => this.getFirstDayOfWeek(),
11451146
getStartDayHour: () => this.option('startDayHour'),
11461147
getCalculatedEndDate: (startDateWithStartHour) => this._workSpace.calculateEndDate(startDateWithStartHour),
11471148
getTimeZoneCalculator: () => this.timeZoneCalculator,

0 commit comments

Comments
 (0)