Skip to content

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

@nfellinger

Description

@nfellinger

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions