Skip to content

Commit

Permalink
Merge pull request #151 from takenet/bugfix/260482-fix-error-on-click…
Browse files Browse the repository at this point in the history
…-in-checkbox-component

fix(checkbox): fixed error that occourred on click because it was not…
  • Loading branch information
rafael-santiago-take authored Dec 9, 2021
2 parents cfdc194 + 5723897 commit fc9dd1e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/checkbox/checkbox.components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import angular from 'core/angular';

export class CheckboxComponent {
uniqueId: string;
public checked: string;
public ngModel: any;
public refer: string;
public group: string;
Expand Down Expand Up @@ -33,10 +32,6 @@ export class CheckboxComponent {
get inputId() {
return this.refer || this.uniqueId;
}

get isChecked() {
return this.checked ? true : false;
}
}

export const Checkbox = angular
Expand All @@ -50,7 +45,6 @@ export const Checkbox = angular
},
bindings: {
group: '@?',
checked: '@?',
refer: '@?',
disabled: '<?',
},
Expand All @@ -59,7 +53,6 @@ export const Checkbox = angular
id="{{$ctrl.inputId}}"
name="{{$ctrl.group}}"
ng-model="$ctrl.model"
ng-checked="$ctrl.isChecked"
ng-disabled="$ctrl.disabled"
></input>
<label for="{{$ctrl.inputId}}" class="flex items-center">
Expand Down

0 comments on commit fc9dd1e

Please sign in to comment.