Skip to content

Commit

Permalink
Update packages/mui-base/CONTRIBUTING.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Sycamore <[email protected]>
Signed-off-by: Michał Dudak <[email protected]>
  • Loading branch information
michaldudak and samuelsycamore authored Sep 1, 2023
1 parent cd942e2 commit 6571296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-base/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If we allow a developer to skip running our logic for a given handler, we check
```tsx
const createHandleKeyDown = (otherHandlers: EventHandlers) => (event: React.KeyboardEvent & MuiCancellableEvent) => {
// Run the external handler first.
// It possibly can set the defaultMuiPrevented field.
// It can potentially set the defaultMuiPrevented field.
otherHandlers.onKeyDown?.(event);

// If the field is set, do not execute the usual handler logic.
Expand Down

0 comments on commit 6571296

Please sign in to comment.