Skip to content

Commit

Permalink
Scheduler - The E1035 - The editor cannot be created error appears on…
Browse files Browse the repository at this point in the history
… an attempt to edit a recurring appointment (T1188098) (#25628)
  • Loading branch information
pomahtri authored Sep 20, 2023
1 parent 96103db commit 8aab539
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/__internal/scheduler/appointment_popup/m_form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class AppointmentForm {

const element = $('<div>');

this.form = this.scheduler.createComponent(element, Form, {
this.scheduler.createComponent(element, Form, {
items,
showValidationSummary: true,
scrollingEnabled: true,
Expand All @@ -140,6 +140,9 @@ export class AppointmentForm {
formData,
showColonAfterLabel: false,
labelLocation: 'top',
onInitialized: (e) => {
this.form = e.component;
},
customizeItem: (e) => {
if (this.form && e.itemType === 'group') {
const dataExprs = this.scheduler.getDataAccessors().expr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,30 @@ test('Invoke showAppointmentPopup method shouldn\'t raise error if value of curr
height: 600,
}));

test('Appointment popup shouldn\'t raise error if appoitment is recursive', async (t) => {
const scheduler = new Scheduler('#container');
await t.doubleClick(scheduler.getAppointment('Meeting of Instructors').element);
await t.click(Scheduler.getEditRecurrenceDialog().series);

const consoleMessages = await t.getBrowserConsoleMessages();
await t.expect(consoleMessages.error.length).eql(0);
}).before(async () => {
const data = [{
text: 'Meeting of Instructors',
startDate: new Date('2020-11-01T17:00:00.000Z'),
endDate: new Date('2020-11-01T17:15:00.000Z'),
recurrenceRule: 'FREQ=DAILY;BYDAY=TU;UNTIL=20201203',
}];

return createWidget('dxScheduler', {
timeZone: 'America/Los_Angeles',
dataSource: data,
currentView: 'month',
currentDate: new Date(2020, 10, 25),
height: 600,
});
});

test('Show appointment popup if deffereRendering is false (T1069753)', async (t) => {
const scheduler = new Scheduler('#container');
const appointment = scheduler.getAppointmentByIndex(0);
Expand Down

0 comments on commit 8aab539

Please sign in to comment.