Remove outdated "@ts-ignore" usage

Got fixed with v5.3.5
This commit is contained in:
schroda
2025-08-16 17:25:54 +02:00
parent f13fcc0e8c
commit 7b9cce765e

View File

@@ -17,8 +17,7 @@ export class MUIUtil {
static preventRippleProp<T extends Record<string, unknown>[]>(
...handlers: T
): T & Pick<React.DOMAttributes<unknown>, 'onMouseDown' | 'onTouchStart'> {
// @ts-ignore - "chainEventHandlers" is wrongly typed
return chainEventHandlers(...handlers, {
return chainEventHandlers(handlers[0], ...handlers.slice(1), {
onMouseDown: MUIUtil.preventRipple(),
onTouchStart: MUIUtil.preventRipple(),
}) as T & Pick<React.DOMAttributes<unknown>, 'onMouseDown' | 'onTouchStart'>;