Skip to content

Commit

Permalink
Fix DatePicker dialog closing to early (#172)
Browse files Browse the repository at this point in the history
As a workaround we can set

```
:md-close-on-blur="false"
```
  • Loading branch information
dmohns authored Jul 10, 2024
1 parent 74f44a2 commit e548555
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 18 deletions.
1 change: 1 addition & 0 deletions Website/ui/src/modules/Agent/AgentDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
name="birthDate"
md-immediately
v-model="agent.birthday"
:md-close-on-blur="false"
>
<label for="birth-date">
Birthday :
Expand Down
2 changes: 1 addition & 1 deletion Website/ui/src/modules/Agent/NewAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@
>
<md-datepicker
name="birthDate"
id="birthDate"
md-immediately
v-model="agentService.agent.birthday"
:md-close-on-blur="false"
>
<label for="birth-date">
{{ $tc('words.birthday') }} :
Expand Down
3 changes: 2 additions & 1 deletion Website/ui/src/modules/Client/AddClientModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@
class="md-layout-item md-size-50 md-small-size-100"
>
<md-datepicker
md-immediately
name="birthDate"
md-immediately
v-model="personService.person.birthDate"
:md-close-on-blur="false"
>
<label for="birth-date">
{{ $tc('words.birthday') }} :
Expand Down
3 changes: 2 additions & 1 deletion Website/ui/src/modules/Client/ClientPersonalData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@
</span>
</md-field>
<md-datepicker
md-immediately
name="birthDate"
md-immediately
v-model="personService.person.birthDate"
:md-close-on-blur="false"
>
<label for="birth-date">
{{ $tc('words.birthday') }} :
Expand Down
2 changes: 1 addition & 1 deletion Website/ui/src/modules/Client/Ticket.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<md-datepicker
name="ticketDueDate"
md-immediately
id="ticketDueDate"
v-model="newTicket.dueDate"
:md-close-on-blur="false"
>
<label for="ticketDueDate">
{{ $tc('phrases.dueDate') }}
Expand Down
6 changes: 4 additions & 2 deletions Website/ui/src/modules/Dashboard/FinancialOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<div class="md-layout md-gutter">
<div class="md-layout-item md-size-100">
<md-datepicker
v-model="period.from"
md-immediately
v-model="period.from"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.fromDate') }}</label>
</md-datepicker>
Expand All @@ -25,9 +26,10 @@
</div>
<div class="md-layout-item md-size-100">
<md-datepicker
v-model="period.to"
md-immediately
v-model="period.to"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.toDate') }}</label>
</md-datepicker>
Expand Down
5 changes: 3 additions & 2 deletions Website/ui/src/modules/Maintenance/Maintenance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@
>
<div>
<md-datepicker
v-model="maintenanceData.dueDate"
:name="$tc('words.date')"
v-validate="'required'"
md-immediately
v-model="maintenanceData.dueDate"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>
{{ $tc('phrases.dueDate') }}
Expand Down
6 changes: 4 additions & 2 deletions Website/ui/src/modules/Meter/Readings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<div class="md-layout md-gutter">
<div class="md-layout-item md-size-100">
<md-datepicker
v-model="dates.dateOne"
md-immediately
v-model="dates.dateOne"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.fromDate') }}</label>
</md-datepicker>
Expand All @@ -25,9 +26,10 @@
</div>
<div class="md-layout-item md-size-100">
<md-datepicker
v-model="dates.dateTwo"
md-immediately
v-model="dates.dateTwo"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.toDate') }}</label>
</md-datepicker>
Expand Down
6 changes: 4 additions & 2 deletions Website/ui/src/modules/MiniGrid/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@
<div class="md-layout md-gutter">
<div class="md-layout-item md-size-100">
<md-datepicker
v-model="period.from"
md-immediately
v-model="period.from"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>
{{ $tc('phrases.fromDate') }}
Expand All @@ -80,9 +81,10 @@
</div>
<div class="md-layout-item md-size-100">
<md-datepicker
v-model="period.to"
md-immediately
v-model="period.to"
v-validate="'required'"
:md-close-on-blur="false"
>
<label>
{{ $tc('phrases.toDate') }}
Expand Down
4 changes: 2 additions & 2 deletions Website/ui/src/modules/Target/NewTarget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
),
}"
:name="$tc('phrases.validUntil')"
v-validate.initial="'required'"
:md-model-type="String"
md-immediately
v-model="targetValidUntil"
v-validate.initial="'required'"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.validUntil') }}</label>
<span class="md-error">
Expand Down
8 changes: 4 additions & 4 deletions Website/ui/src/modules/Transactions/FilterTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
class="md-layout-item md-xlarge-size-100 md-large-size-100 md-medium-size-100 md-small-size-100 md-xsmall-size-100"
>
<md-datepicker
v-model="filterFrom"
md-immediately
:md-model-type="String"
v-model="filterFrom"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.fromDate') }}</label>
</md-datepicker>
Expand All @@ -119,9 +119,9 @@
class="md-layout-item md-xlarge-size-100 md-large-size-100 md-medium-size-100 md-small-size-100 md-xsmall-size-100"
>
<md-datepicker
v-model="filterTo"
md-immediately
:md-model-type="String"
v-model="filterTo"
:md-close-on-blur="false"
>
<label>{{ $tc('phrases.toDate') }}</label>
</md-datepicker>
Expand Down

0 comments on commit e548555

Please sign in to comment.