Skip to content

Commit

Permalink
fix: kbn inside of collector
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Dec 2, 2024
1 parent 8a50ed5 commit a0bd72e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ class SchedulerAppointments extends CollectionWidget {
const $target = $(e.currentTarget);
const data = (this as any)._getItemData($target);

if ($target.is('.dx-scheduler-appointment-collector')) {
return;
}

if (e.type === 'keydown' || isFakeClickEvent(e)) {
this.notifyObserver('showEditAppointmentPopup', { data, target: $target });
return;
Expand Down
2 changes: 0 additions & 2 deletions packages/devextreme/js/__internal/scheduler/m_scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1719,9 +1719,7 @@ class Scheduler extends Widget<any> {
startDayHour: this.option('startDayHour'),
endDayHour: this.option('endDayHour'),
viewOffset: this.getViewOffsetMs(),
tabIndex: this.option('tabIndex'),
accessKey: this.option('accessKey'),
focusStateEnabled: this.option('focusStateEnabled'),
cellDuration: this.option('cellDuration'),
showAllDayPanel: this.option('showAllDayPanel'),
showCurrentTimeIndicator: this.option('showCurrentTimeIndicator'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class DesktopTooltipStrategy extends TooltipStrategyBase {
onShown: this._onShown.bind(this),
contentTemplate: this._getContentTemplate(dataList),
wrapperAttr: { class: APPOINTMENT_TOOLTIP_WRAPPER_CLASS },
_loopFocus: true,
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export class TooltipStrategyBase {
const listElement = $('<div>');
$(container).append(listElement);
this._list = this._createList(listElement, dataList);
this._list.registerKeyHandler('escape', () => {
this.hide();
this._tooltip.option('target').focus();
});
};
}

Expand Down

0 comments on commit a0bd72e

Please sign in to comment.