Search code examples
angulartogglenebular

nebular toggle does not work in production mode


I have a nb-toggle html element on my page. It works well in debug mode, but in production mode it look like this: enter image description here

Any suggestion what could cause this ?

enter image description here

this is locally run, looks very good. I use Angular 9 with nebular.

 <nb-toggle (checkedChange)="toggleTempHolder($event)" [(checked)]="service.tempholderChecked"
    class="input-group-sm" style="position: absolute;bottom: 0px;right:0px;"></nb-toggle>

Solution

  • had to create a css nb-toggle .checked span{ left: auto !important; }

    with this, it works as it should in production.