Pay Button: Re-add Vue handlers to currency input (#3646)

Fixes a regression introduced in #3642: The pay button preview and code sample do not update without the Vue handlers.
This commit is contained in:
d11n 2022-04-16 18:38:51 +02:00 committed by GitHub
parent 8f54ec4f4a
commit d11f87f0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,8 +154,10 @@
<small class="text-danger">{{ errors.first('price') }}</small>
</div>
<div class="form-group col-md-4" v-if="!srvModel.appIdEndpoint">
<label class="form-label" for="currency">Currency</label>
<input asp-for="Currency" currency-selection class="form-control"/>
<label class="form-label" for="Currency">Currency</label>
<input asp-for="Currency" name="currency" currency-selection class="form-control"
v-model="srvModel.currency" v-on:change="inputChanges"
:class="{'is-invalid': errors.has('currency') }" />
</div>
<div class="form-group col-md-4" v-if="!srvModel.appIdEndpoint">
<label class="form-label" for="defaultPaymentMethod">Default Payment Method</label>