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

Internal references for event binding docs #468

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

deap82
Copy link

@deap82 deap82 commented Jan 18, 2020

Added some internal references between event binding documentation, following my question at https://discourse.aurelia.io/t/how-to-determine-if-events-from-customelements-should-bubble-or-not/3161/3

@@ -19,6 +19,8 @@ To find out if [event delegation](https://davidwalsh.name/event-delegate) can be

Here's the [MDN page for blur](https://developer.mozilla.org/en-US/docs/Web/Events/blur). It has further info on event delegation techniques for the blur and focus events.

When using `delegate` you might also want to use the [`self` binding behavior](/docs/binding/binding-behaviors#self).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may accidentally give wrong impression that either

  • delegate should be accompanied by self
  • only delegate can work with self

Maybe we can word it in a way that signals self is complementary to event, instead of enhancement. Something like this:

Aurelia provides a few binding behaviors to help define advance event handling behavior out of the box, please see
1...
2...
3...

@EisenbergEffect @fkleuver

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes of course, self can be used also for trigger! Sorry, I'm a little confused...

What other binding behaviors would be in that list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants