Frontmatter
| id | 4571 |
| title | button.Base: domListeners refactoring |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jul 25, 2023, 11:02 PM |
| updatedAt | Jul 26, 2023, 2:43 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4571 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jul 26, 2023, 2:43 PM |
while the domListeners won't end up inside the DOM, at this point we have up to 4 add calls.
instead, we should just add one listener pointing to a new class method like
onClick(), which can then execute the handler, route, rippleEffect and menu toggle as needed.