Skip to content

Commit

Permalink
Merge pull request #7111 from QwikDev/pr-events-docs-typo
Browse files Browse the repository at this point in the history
fixed typo in events doc
  • Loading branch information
shairez authored Nov 29, 2024
2 parents f7dc3ef + f9d9cf0 commit b183a8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Due to Qwik's asynchronous nature, the execution of an event handler might be de

### preventDefault & stopPropagation

Because event handling is asynchronous, you can't use `event.preventDefault()` or `event.stopPropagation()`. To solve this, Qwik introduces a declarative way to prevent default through `preventdefault:{eventName}` and `stoppropagation:{eventName} attributes.
Because event handling is asynchronous, you can't use `event.preventDefault()` or `event.stopPropagation()`. To solve this, Qwik introduces a declarative way to prevent default through `preventdefault:{eventName}` and `stoppropagation:{eventName}` attributes.

<CodeSandbox src="/src/routes/demo/events/preventdefault/index.tsx" style={{ height: '6em' }}>
```tsx {7}
Expand Down

0 comments on commit b183a8b

Please sign in to comment.