-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add an event action option for stopping propagation * Add test case for stopping propagation ... by specifying the event explicitly. * Add test case for ensuring event propagation without stop option * Improve test case descriptions ... by using the words "implicit" and "explicit" instead of "default" and "specified". * Replace `logPropagationContinued` with `log` and `log2` * Add an event action option for preventing default * Add test case for using `:prevent` with explicit event name * Update `README` about the new action options * Rename `ExtendedAddEventListenerOptions` to `EventModifiers` * Use delegated getter method for `eventOptions` ... inside `Binding`. * Process `.preventDefault` and `.stopPropagation` in separate functions
- Loading branch information
Nipun Paradkar
authored
Apr 30, 2022
1 parent
c502444
commit 531ec30
Showing
6 changed files
with
97 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface EventModifiers extends AddEventListenerOptions { | ||
stop?: boolean; | ||
prevent?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters