Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify on:event usage #10088

Open
wants to merge 2 commits into
base: svelte-4
Choose a base branch
from

Commits on Jan 4, 2024

  1. docs: Update 06-component-directives.md on:event clarification

    Problem 1: The events emitted/forwarded were not listened for.
    Fix 1: Changed event names to show consistency amongst examples
    
    Problem 2: Why events need to be forwarded is unclear (on this page). `createEventDispatcher` docs does mention custom events dont bubble. But components also cannot listen to DOM events that do bubble. 
    Fix 2: Clarified that components only listen to event from their direct children
    cloudymeatball committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    888935d View commit details
    Browse the repository at this point in the history
  2. Update 06-component-directives.md

    added "or emitted"
    cloudymeatball committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    ce69130 View commit details
    Browse the repository at this point in the history