Skip to content

Commit

Permalink
[core] Fix event naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 29, 2024
1 parent b7774aa commit c8845a2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/data/data-grid/components/RowContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default function RowContextMenu() {
}
slotProps={{
root: {
onContextMenu: (e) => {
e.preventDefault();
onContextMenu: (event) => {
event.preventDefault();
handleClose();
},
},
Expand Down
4 changes: 2 additions & 2 deletions docs/data/data-grid/components/RowContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export default function RowContextMenu() {
}
slotProps={{
root: {
onContextMenu: (e) => {
e.preventDefault();
onContextMenu: (event) => {
event.preventDefault();
handleClose();
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/x-charts/src/hooks/useReducedMotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const useReducedMotion = () => {
}
const mql = window.matchMedia('(prefers-reduced-motion)');

const handleMediaChange = (e: MediaQueryListEvent | MediaQueryList) => {
const handleMediaChange = (event: MediaQueryListEvent | MediaQueryList) => {
Globals.assign({
// Modification such the react-spring implementation such that this hook can remove animation but never activate animation.
skipAnimation: e.matches || undefined,
skipAnimation: event.matches || undefined,
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function GridColumnMenuAggregationItem(props: GridColumnMenuItemProps) {
label={label}
color="primary"
onChange={handleAggregationItemChange}
onBlur={(e) => e.stopPropagation()}
onBlur={(event) => event.stopPropagation()}
fullWidth
>
<MenuItem value="">...</MenuItem>
Expand Down

0 comments on commit c8845a2

Please sign in to comment.