Skip to content

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


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.

2 participants