Commit bd4bba84 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: remove console.log + clean code

parent 1fdc33f2
Pipeline #14137 passed with stage
in 4 minutes and 15 seconds
......@@ -20,7 +20,7 @@ export class HourPickerComponent implements OnChanges, OnDestroy {
public error = false;
private copiedDay: any;
private isInputSeleceted = false;
private isInputSelected = false;
public copiedDayName = '';
public structure = {
hours: this.initHoursDefault(),
......@@ -283,17 +283,16 @@ export class HourPickerComponent implements OnChanges, OnDestroy {
}
public onFocus(): void {
this.isInputSeleceted = true;
this.isInputSelected = true;
}
public onBlur(): void {
this.isInputSeleceted = false;
this.isInputSelected = false;
this.submitForm();
}
public submitForm(): void {
console.log('submit ? ', this.isInputSeleceted);
if (this.checkHoursValid() && this.isInputSeleceted === false) {
if (this.checkHoursValid() && this.isInputSelected === false) {
this.updateForm.emit(this.parseHoursToForm());
} else {
this.updateFormError.emit();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment