Skip to content

Commit

Permalink
Merge pull request #1819 from ag-grid/fix-overlay-pointer-events
Browse files Browse the repository at this point in the history
Fix pointer events
  • Loading branch information
jacobp100 committed Jun 20, 2024
2 parents 7393482 + 93af7f9 commit 257c58e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ag-charts-community/src/chart/dom/domManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const STYLES = `
.ag-charts-canvas-overlay > * {
position: absolute;
pointer-events: auto;
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export class ColorPicker extends _ModuleSupport.BaseModuleInstance implements _M
});
};

(['mousedown', 'keydown'] as const).forEach((event) => {
colorPickerContainer.addEventListener(event, (e) => {
(['mousedown', 'keydown'] as const).forEach((eventName) => {
colorPicker.addEventListener(eventName, (e) => {
e.stopPropagation();
});
});
Expand Down

0 comments on commit 257c58e

Please sign in to comment.