Skip to content

db-header toggle (db-button click) event fires 2 times (DB UX 2.0.0) #4066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 7 tasks
nfellinger opened this issue Apr 16, 2025 · 1 comment · Fixed by #4135
Closed
1 of 7 tasks

db-header toggle (db-button click) event fires 2 times (DB UX 2.0.0) #4066

nfellinger opened this issue Apr 16, 2025 · 1 comment · Fixed by #4135
Labels

Comments

@nfellinger
Copy link

nfellinger commented Apr 16, 2025

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

The toggle event of the db-header element emits 2 times when clicking on the burger menu to open the drawer in the mobile view.

<db-header [drawerOpen]="drawerOpen()" (toggle)="toggleDrawer($event)">

When the drawer is closed and the burger menu button is pressed, the event is first emitted with $event = true and a second time after with $event = false.

This prevents the user from opening the navigation on a mobile device.

Expected Behaviour

The toggle event on the db-header element should only emit once when the burger menu button is pressed.

Screenshots

Image

Browser version

Chrome

Add any other context about the problem here.

No response

@mfranzke mfranzke added the 👩‍👧‍👦communityFeedback Feedback from community label Apr 17, 2025
@mfranzke mfranzke moved this to 📋 Backlog in UX Engineering Team Backlog Apr 17, 2025
@nfellinger nfellinger changed the title db-header toggle event fires 2 times (DB UX 2.0.0) db-header toggle (db-button click) event fires 2 times (DB UX 2.0.0) Apr 22, 2025
@nfellinger
Copy link
Author

I noticed this problem is not a problem of the db-header component but generally a problem with db-button. The db-button click event is emitted 2 times which causes numerous issues in our application.

@nmerget nmerget moved this from 📋 Backlog to 🕋 In progress in UX Engineering Team Backlog Apr 30, 2025
@github-project-automation github-project-automation bot moved this from 🕋 In progress to ✅ Done in UX Engineering Team Backlog Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants