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

Adding switchery to input checkbox removes other attributes #150

Open
mpharm opened this issue Nov 23, 2017 · 0 comments
Open

Adding switchery to input checkbox removes other attributes #150

mpharm opened this issue Nov 23, 2017 · 0 comments

Comments

@mpharm
Copy link

mpharm commented Nov 23, 2017

This is the input checkbox to which I added switchery
<input checked="checked" (change)="changeRecordStatus($event)" formControlName="RecordStatus" data-color="#3aa99e" id="RecordStatus" name="RecordStatus" type="checkbox">

(change)="changeRecordStatus($event)" is for Angular 4 to detect changes to the input.

After switchery is initialized, the (change)="changeRecordStatus($event)" from the checkbox is missing.

What am I doing wrong?

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