mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-30 02:40:58 -05:00
9 lines
212 B
TypeScript
9 lines
212 B
TypeScript
export const stopPropagation = (
|
|
ev: JSX.TargetedMouseEvent<HTMLElement>,
|
|
// eslint-disable-next-line
|
|
_consume?: unknown,
|
|
) => {
|
|
ev.preventDefault();
|
|
ev.stopPropagation();
|
|
return true;
|
|
};
|