- Notifications
You must be signed in to change notification settings - Fork61
Open
Description
preventDefault()
works fine before the firstawait
in an async function, so this code works as expected, but if currently flagged:
document.querySelector('a').addEventListener('click',e=>{e.preventDefault();awaitfetch('/');});
It's only after the firstawait
, wherepreventDefault
stops working. I suggest the rule to only flagpreventDefault()
after the firstawait
.
Metadata
Metadata
Assignees
Labels
No labels