Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Apr 17, 2024
1 parent 7b71ea0 commit d557ffa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { UseTreeViewFocusSignature } from './useTreeViewFocus.types';
import { useInstanceEventHandler } from '../../hooks/useInstanceEventHandler';
import { getActiveElement } from '../../utils/utils';
import { getFirstNavigableItem } from '../../utils/tree';
import {MuiCancellableEvent} from "../../models/MuiCancellableEvent";
import { MuiCancellableEvent } from '../../models/MuiCancellableEvent';

const useTabbableItemId = (
instance: TreeViewUsedInstance<UseTreeViewFocusSignature>,
Expand Down Expand Up @@ -130,7 +130,8 @@ export const useTreeViewFocus: TreeViewPlugin<UseTreeViewFocusSignature> = ({
});

const createRootHandleFocus =
(otherHandlers: EventHandlers) => (event: React.FocusEvent<HTMLUListElement> & MuiCancellableEvent) => {
(otherHandlers: EventHandlers) =>
(event: React.FocusEvent<HTMLUListElement> & MuiCancellableEvent) => {
otherHandlers.onFocus?.(event);
if (event.defaultMuiPrevented) {
return;
Expand Down

0 comments on commit d557ffa

Please sign in to comment.