Skip to content

Commit 47321ef

Browse files
committed
fix: fix bug
1 parent 32968c0 commit 47321ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,13 @@ class SchedulerWorkSpace extends WidgetObserver {
527527
}
528528

529529
_focusInHandler(e) {
530-
if ($(e.target).is(this._focusTarget() as any) && this._isCellClick) {
530+
const $target = $(e.target);
531+
const $focusTarget = this._focusTarget();
532+
// T1312256: On macOS, e.target can be a child element of the workspace root
533+
const isTargetInsideWorkspace = $target.is($focusTarget)
534+
|| $target.closest($focusTarget).length > 0;
535+
536+
if (isTargetInsideWorkspace && this._isCellClick) {
531537
delete this._isCellClick;
532538
delete this._contextMenuHandled;
533539
// @ts-expect-error

0 commit comments

Comments
 (0)