Update radiobutton-group.component.ts

This commit is contained in:
Daniel Appelgren
2021-11-12 10:21:21 +01:00
parent 383fd26cae
commit a08cf6ff42

View File

@@ -9,7 +9,7 @@ import {
OnChanges, OnChanges,
Output, Output,
} from '@angular/core'; } from '@angular/core';
import { ControlValueAccessor, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
import { uuid } from '@utils/uuid.util'; import { uuid } from '@utils/uuid.util';
import { RadiobuttonGroupDirection } from './radiobutton-group-direction.enum'; import { RadiobuttonGroupDirection } from './radiobutton-group-direction.enum';
import { Radiobutton } from './radiobutton.model'; import { Radiobutton } from './radiobutton.model';
@@ -100,7 +100,6 @@ export class RadiobuttonGroupComponent implements ControlValueAccessor, AfterVie
checkForChange(rawValue: any): void { checkForChange(rawValue: any): void {
const value = this._transformValue(rawValue); const value = this._transformValue(rawValue);
console.log(value);
if (this._value !== value) { if (this._value !== value) {
if (this.onChange) { if (this.onChange) {
this.onChange(value); this.onChange(value);