UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

13 lines (11 loc) 388 B
'use client'; function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) { return (event) => { originalEventHandler?.(event); if (checkForDefaultPrevented === false || !event.defaultPrevented) { ourEventHandler?.(event); } }; } export { composeEventHandlers }; //# sourceMappingURL=compose-event-handlers.mjs.map