File tree Expand file tree Collapse file tree
views/DiagnosticTunnel/QualityMeasureSteps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 suffix="€ HT"
99 v-bind =" $attrs "
1010 v-on =" $listeners "
11+ ref="text-field"
1112 />
1213</template >
1314
@@ -23,5 +24,10 @@ export default {
2324 return validators
2425 },
2526 },
27+ methods: {
28+ validate () {
29+ return this .$refs [" text-field" ].validate ()
30+ },
31+ },
2632}
2733 </script >
Original file line number Diff line number Diff line change 88 @blur =" updatePayload "
99 :error =" hasError "
1010 label="Total (en € HT) de tous mes achats alimentaires"
11+ ref="totalField"
1112 />
1213 <PurchaseHint
1314 v-if =" displayPurchaseHints "
1415 v-model =" payload .valueTotalHt "
15- @autofill =" updatePayload "
16+ @autofill =" onPurchaseAutofill "
1617 purchaseType="totaux"
1718 :amount =" purchasesSummary .valueTotalHt "
1819 :class =" $vuetify .breakpoint .mdAndUp ? ' narrow-field' : ' ' "
@@ -170,6 +171,10 @@ export default {
170171 this .errorHelperUsed = true
171172 this .checkTotal ()
172173 },
174+ onPurchaseAutofill () {
175+ this .updatePayload ()
176+ this .$nextTick (this .$refs .totalField .validate )
177+ },
173178 },
174179 mounted () {
175180 this .checkTotal ()
You can’t perform that action at this time.
0 commit comments