Skip to content

Commit 591eee8

Browse files
committed
fix: fix bugs
1 parent fe0bb38 commit 591eee8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/react-storybook/stories/scheduler/SchedulerFormCustomization.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ export const LegacyPopup: Story = {
403403
{
404404
name: "customRepeatEditor",
405405
editorType: "dxSwitch",
406+
dataField: "repeat",
406407
editorOptions: {
407408
onValueChanged: (e) => {
408409
if (e.value === true) {
@@ -420,8 +421,6 @@ export const LegacyPopup: Story = {
420421
form.getEditor("repeatEditor").option("value", "never");
421422
onValueChanged({ ...e, value: "never" });
422423
}
423-
424-
form.getEditor("customRepeatEditor").option("value", e.value);
425424
},
426425
},
427426
},

packages/devextreme/js/__internal/scheduler/appointment_popup/m_form.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ export class AppointmentForm {
873873
this._$recurrenceGroup?.attr('tabindex', '-1');
874874

875875
this._popup.updateToolbarForMainGroup();
876+
this.updateRepeatEditorValue();
876877
}
877878

878879
saveRecurrenceValue(): void {
@@ -938,7 +939,8 @@ export class AppointmentForm {
938939
const value = frequency ?? repeatNeverValue;
939940

940941
repeatEditor.option('value', value);
941-
this._recurrenceForm.recurrenceRule = new RecurrenceRule(
942+
this._recurrenceForm.updateRecurrenceFormValues(
943+
value,
942944
this.recurrenceRuleRaw,
943945
this.startDate,
944946
);

0 commit comments

Comments
 (0)