Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Commits
bd4bba84
Commit
bd4bba84
authored
3 years ago
by
Hugo SUBTIL
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove console.log + clean code
parent
1fdc33f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!178
release V1.10.0
,
!154
Dev
,
!145
fix: issue on hour-picker focus + clean code
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/shared/components/hour-picker/hour-picker.component.ts
+4
-5
4 additions, 5 deletions
...pp/shared/components/hour-picker/hour-picker.component.ts
with
4 additions
and
5 deletions
src/app/shared/components/hour-picker/hour-picker.component.ts
+
4
−
5
View file @
bd4bba84
...
...
@@ -20,7 +20,7 @@ export class HourPickerComponent implements OnChanges, OnDestroy {
public
error
=
false
;
private
copiedDay
:
any
;
private
isInputSelec
e
ted
=
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
.
isInputSelec
e
ted
=
true
;
this
.
isInputSelected
=
true
;
}
public
onBlur
():
void
{
this
.
isInputSelec
e
ted
=
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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment