Ion-toggle doesn't behave correctly outside ion-item


#1

Hi

i’m trying to use <ion-toggle> outside <ion-item>, something like this:

<ion-header>
  <ion-toolbar>
    <label>My Label</label>
    <ion-toggle [disabled]="isDisabled"></ion-toggle>
  </ion-toolbar>
</ion-header>

But when “disabled” it’s not working at all, there the correct class on it toggle-disabled but we can still toggle it and it not have the opacity applied.

By the way, it’s not an inline-block but a block so we can’t put it inline.