Skip to content

Commit 3c0717b

Browse files
committed
fix: fix end repeat editors disabled state when opening legacy form again
1 parent fa5d729 commit 3c0717b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,9 @@ export class RecurrenceForm {
510510
'aria-label': messageLocalization.format('dxScheduler-recurrenceUntilDateLabel'),
511511
},
512512
onContentReady: (e): void => {
513+
const repeatEndValue = this.recurrenceRule.repeatEnd;
513514
e.component.option('value', this.recurrenceRule.until);
515+
e.component.option('disabled', repeatEndValue !== 'until');
514516
},
515517
onValueChanged: (e): void => {
516518
this.recurrenceRule.until = e.value;
@@ -534,7 +536,9 @@ export class RecurrenceForm {
534536
'aria-label': messageLocalization.format('dxScheduler-recurrenceOccurrenceLabel'),
535537
},
536538
onContentReady: (e): void => {
539+
const repeatEndValue = this.recurrenceRule.repeatEnd;
537540
e.component.option('value', this.recurrenceRule.count ?? undefined);
541+
e.component.option('disabled', repeatEndValue !== 'count');
538542
},
539543
onValueChanged: (e): void => {
540544
this.recurrenceRule.count = e.value;

0 commit comments

Comments
 (0)