Skip to content

Commit e49e35f

Browse files
committed
fix: fix bug when trying to change recurrence rule frequency
1 parent fe42302 commit e49e35f

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,35 @@ export const LegacyPopup: Story = {
439439
{
440440
name: "recurrenceStartDateEditor",
441441
},
442-
"recurrenceRuleGroup",
442+
{
443+
name: "recurrenceRuleGroup",
444+
itemType: "group",
445+
items: ["recurrenceRuleIcon",
446+
{
447+
name: "recurrencePatternGroup",
448+
itemType: "group",
449+
items: [
450+
{
451+
name: "recurrenceRuleRepeatGroup",
452+
items: [
453+
"recurrenceCountEditor",
454+
{
455+
name: "recurrencePeriodEditor", editorOptions: {
456+
onValueChanged: (e) => {
457+
const onValueChanged = form.getEditor("repeatEditor").option("onValueChanged");
458+
form.getEditor("repeatEditor").option("value", e.value);
459+
onValueChanged(e);
460+
}
461+
}
462+
},
463+
]
464+
},
465+
"recurrenceDaysOfWeekEditor",
466+
"recurrenceDayOfYearGroup"
467+
]
468+
},
469+
]
470+
},
443471
"recurrenceEndGroup",
444472
],
445473
},

0 commit comments

Comments
 (0)