MCPcopy
hub / github.com/realdennis/md2pdf / stopDefault

Function stopDefault

src/App/Container/Hooks/useDrop.js:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 const [uploading, setUploading] = useState(false);
5 const [isOver, setOver] = useState(false);
6 const stopDefault = e => {
7 e.preventDefault();
8 e.stopPropagation();
9 };
10 useEffect(() => {
11 const dragLeaveHandler = e => {
12 setOver(false);

Callers 3

dragLeaveHandlerFunction · 0.85
dragOverHandlerFunction · 0.85
dropHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected