You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an ESL consumer, I want to be able to access current event delegated target.
Use Case: event delegation
Shortcut for
@listen({event: 'some',selector: '.delegate.selector'})onSomeEvent(e: Event){const{target}=e;const$delegate=target&&target.closest('.delegate.selector');// <- that one
...
}
Additional context: the ability to receive event listener as handler parameter was lost in bounds of #983 request implementation
It is rejected originally to have common information in simple cases for debugging reasons and receive listeners in general by API reasons.
Nevertheless, the delegation case is more specific and can be extended (by second param or original event mixing)
ala-n
changed the title
[🚀esl-event-listener]: ability to receive listener information (element target, selected target)
[🚀esl-event-listener]: ability to receive additional event information related to listener (element target, selected target)
May 25, 2023
# [4.7.0](v4.6.0...v4.7.0) (2023-06-09)
### Bug Fixes
* **esl-utils:** fix sequence finder behaviour in case step function leads to loop ([c23e2c2](c23e2c2))
### Code Refactoring
* **esl-carousel:** remove legacy esl-carousel implementation ([b31599a](b31599a))
### Features
* **esl-event-listener:** add the ability to get the current delegated event target ([#1675](#1675)) ([8b4b089](8b4b089))
* **esl-popup:** change the logic of auto injection of arrow ([a7ba04c](a7ba04c))
* **esl-utils:** add `findNextLooped` and `findPrevLooped` common traversing utility ([80a4e67](80a4e67))
* **esl-utils:** add `promisifyNextRender` common utility ([3a93887](3a93887))
* **esl-utils:** introduce `promisifyTransition` utility ([68d0556](68d0556))
* **esl-utils:** utility to postpone execution to microtask ([4f4f637](4f4f637))
### BREAKING CHANGES
* **esl-carousel:** `draft/esl-carousel` no longer available
As an ESL consumer, I want to be able to access current event delegated target.
Use Case: event delegation
Shortcut for
Additional context: the ability to receive event listener as handler parameter was lost in bounds of #983 request implementation
It is rejected originally to have common information in simple cases for debugging reasons and receive listeners in general by API reasons.
Nevertheless, the delegation case is more specific and can be extended (by second param or original event mixing)
Architecture proposal (by @ala-n)
User API:
The text was updated successfully, but these errors were encountered: