Skip to content
Snippets Groups Projects
Commit bd4bba84 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: remove console.log + clean code

parent 1fdc33f2
No related branches found
No related tags found
3 merge requests!178release V1.10.0,!154Dev,!145fix: issue on hour-picker focus + clean code
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment