MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / composeEventHandlers

Function composeEventHandlers

src/utils/index.js:211–219  ·  view source on GitHub ↗
(...fns)

Source from the content-addressed store, hash-verified

209 * @return {Function} the event handler to add to an element
210 */
211export function composeEventHandlers(...fns) {
212 return (event, ...args) =>
213 fns.some((fn) => {
214 if (!isPropagationStopped(event) && fn) {
215 fn(event, ...args);
216 }
217 return isPropagationStopped(event);
218 });
219}
220
221/**
222 * canUseFileSystemAccessAPI checks if the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API)

Callers 1

useDropzoneFunction · 0.90

Calls 2

isPropagationStoppedFunction · 0.85
fnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…