Skip to content

Commit ef9ee21

Browse files
authored
Scheduler: Restore recurrence appointment focus after edit recurrence appointment popup closed (#31139)
1 parent b1d439e commit ef9ee21

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,7 @@ class Scheduler extends Widget<any> {
19721972
],
19731973
popupOptions: {
19741974
wrapperAttr: { class: 'dx-dialog' },
1975+
onHidden: () => { this._appointments?.focus(); },
19751976
},
19761977
} as any);
19771978

packages/devextreme/js/__internal/ui/m_dialog.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ export const custom = function (options) {
149149
position: {
150150
boundaryOffset: { h: 10, v: 0 },
151151
},
152-
}, options.popupOptions));
152+
}, options.popupOptions, {
153+
onHidden: ({ element }): void => {
154+
$(element).remove();
155+
options.popupOptions?.onHidden?.({ element });
156+
},
157+
}));
153158

154159
const buttonOptions = options.buttons || [DEFAULT_BUTTON];
155160

0 commit comments

Comments
 (0)