Skip to content

Commit

Permalink
Fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhsware committed Dec 4, 2023
1 parent bc728ec commit 9d313ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/inferno/src/DOM/events/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function extendEventProperties(event): IEventData {
return eventData;
}

function rootEvent(name: string) {
function rootEvent(name: string): (event: SemiSyntheticEvent<any>) => void {
const isClick = name === 'onClick' || name === 'onDblClick';
return function (event: SemiSyntheticEvent<any>) {
dispatchEvents(event, isClick, name, extendEventProperties(event));
Expand All @@ -185,7 +185,6 @@ function attachEventToDocument(
name: string,
): (event: SemiSyntheticEvent<any>) => void {
const attachedEvent = rootEvent(name);

// @ts-expect-error TODO: FIXME
document.addEventListener(normalizeEventName(name), attachedEvent);

Expand Down

0 comments on commit 9d313ff

Please sign in to comment.