Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with switch state displaying half on half off #37

Open
bjornharvold opened this issue Apr 6, 2021 · 0 comments
Open

Issue with switch state displaying half on half off #37

bjornharvold opened this issue Apr 6, 2021 · 0 comments

Comments

@bjornharvold
Copy link

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting

Versions.

Angular: 11.2.7
jw-bootstrap-switch-ng2: 2.0.5

Repro steps.

Occurs randomly. Sometimes, when a page is loaded / reloaded, the state of the switch looks like this (see image attached)
Screen Shot 2021-04-06 at 2 15 00 PM

@Input() disabled = false;
@Input() readonly = false;
@Input() animate = true;
@Input() size: 'mini' | 'small' | 'normal' | 'large' = 'normal';
@Input() onColor: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'default' = 'primary';
@Input() offColor: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'default' = 'default';

<bSwitch [id]="ngControl.name"
           [formControl]="ngControl.control"
           [switch-size]="size"
           [switch-on-color]="onColor"
           [switch-off-color]="offColor"
           [switch-disabled]="disabled"
           [switch-readonly]="readonly"
           [switch-animate]="animate"
           (changeState)="toggled($event)"
  ></bSwitch>

The log given by the failure.

No failure error given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant