If an event listener must be `async`, the `e.preventDefault()` should be before any `await`, it's recommended to put it at the beginning of the function. |
||
|---|---|---|
| .. | ||
| doc | ||
| page | ||
If an event listener must be `async`, the `e.preventDefault()` should be before any `await`, it's recommended to put it at the beginning of the function. |
||
|---|---|---|
| .. | ||
| doc | ||
| page | ||