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
198 stars 67 forks source link

unexpected behavior for disabled ix-button #263

Closed SusiHorter closed 1 year ago

SusiHorter commented 1 year ago

What happened?

The ix-button is not clickable, if the disabled property is set to 'false'.

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

Angular

Which version of iX do you use?

v1.2.1

Code to produce this issue.

<ix-button
        ghost
        disabled="false"
        (click)="Disabled()">
        disabled
      </ix-button>
      <ix-button
        ghost
        (click)="Enabled()">
        enabled
      </ix-button>
SusiHorter commented 1 year ago

@danielleroux is this bug resolved in iX version 1.3.0? Because in our implementation is the style of the button like its disabled, but the button can be clicked.

nuke-ellington commented 1 year ago

@SusiHorter yes this should be fixed. Can you please share your code again?

SusiHorter commented 1 year ago

@nuke-ellington Thank you for the fast answer.

The code is: <ix-icon-button icon="remove-eye" ghost disabled placement="bottom" ngbTooltip="Offboard device" (click)="PerformActionOnSelectedDevices('offboardDevices')"> </ix-icon-button>

But I think this is a local problem of my colleague, because I tried it myself and strangely it works.