siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
207 stars 67 forks source link

Content Header on click of the title, it triggering the event #1538

Closed vamshisai98 closed 4 weeks ago

vamshisai98 commented 4 weeks ago

Prerequisites

What happened?

On click of the title of content header component. Event is getting triggered

content-header

What type of frontend framework are you seeing the problem on?

Angular

Which version of iX do you use?

v2.5.0

Code to produce this issue.

<ix-content-header
        (click)="onClickRouteBack()"
        has-back-button="true"
        header-title="Results"
      >
      </ix-content-header>

onClickRouteBack() {
    this.router.navigate(['/']);
  }
danielleroux commented 4 weeks ago

@vamshisai98 that is a expected behaviour every component extends from HTMLElement.

Use the dedicated event backButtonClick (for details look into documentation)