Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(events): remove methods from synthetic events
Instead of using methods that can be invoked anywhere in the code, it is better to explicitly return flags. It will be much easier to review code. BREAKING CHANGE: Synthetic event methods `preventDefault()` and `stopPropagation()` were removed. Before: ```ts onClick((ev) => { ev.preventDefault(); ev.stopPropagation(); }); ``` After: ```ts onClick(() => EventFlags.PreventDefault | EventFlags.StopPropagation); ```
- Loading branch information
Showing
6 changed files
with
19 additions
and
23 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
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