@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
15 lines (12 loc) • 423 B
JavaScript
'use client';
;
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
return (event) => {
originalEventHandler?.(event);
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
ourEventHandler?.(event);
}
};
}
exports.composeEventHandlers = composeEventHandlers;
//# sourceMappingURL=compose-event-handlers.cjs.map