Skip to content

Commit c2adc91

Browse files
author
Alyar
committed
Add comments for resizeStarted callback
1 parent c9aab3c commit c2adc91

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/devextreme/js/__internal/grids/grid_core/ai_column/m_ai_column_view.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ export const columnHeadersViewExtender = (
159159
this.columnsResizer = this.getController('columnsResizer');
160160

161161
this.columnsResizer.resizeStarted.add(() => {
162+
/**
163+
* We need to manually close the DropDownMenu button
164+
* because the stopPropagation method is called
165+
* when the cell resize is initiated.
166+
* Calling this method is necessary to fix bug T252661.
167+
*/
162168
this.activeDropDownButtonInstance?.close();
163169
});
164170
}

packages/devextreme/js/__internal/grids/grid_core/columns_resizing_reordering/m_columns_resizing_reordering.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,10 @@ export class ColumnsResizerViewController extends modules.ViewController {
702702

703703
private _draggingHeaderView!: DraggingHeaderView;
704704

705+
/**
706+
* Fired when column resizing begins.
707+
* Used to notify other components (e.g., to close open dropdowns).
708+
*/
705709
public resizeStarted!: Callback;
706710

707711
protected callbackNames(): string[] {

0 commit comments

Comments
 (0)