From 94576ff3a48c8af83908757fa0a38696e4c9b3fd Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Fri, 18 Jul 2025 07:10:41 +0000 Subject: [PATCH] refactor: convert AmountInput to function props - Convert AmountInput from @Emit("update:value") to onUpdateValue function prop - Update GiftDetailsStep to use new function prop interface for amount handling AmountInput now provides better parent control over validation and updates --- src/components/AmountInput.vue | 30 ++++++++++++++--------------- src/components/ContactInputForm.vue | 2 -- src/components/GiftDetailsStep.vue | 2 +- src/views/ContactsView.vue | 10 ++++++---- 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/AmountInput.vue b/src/components/AmountInput.vue index d9284477..1e4ca75a 100644 --- a/src/components/AmountInput.vue +++ b/src/components/AmountInput.vue @@ -36,7 +36,7 @@ with increment/decrement buttons and validation. * * @author Matthew Raymer */ diff --git a/src/components/ContactInputForm.vue b/src/components/ContactInputForm.vue index 0ef2ded4..8d791eda 100644 --- a/src/components/ContactInputForm.vue +++ b/src/components/ContactInputForm.vue @@ -111,8 +111,6 @@ export default class ContactInputForm extends Vue { @Prop({ type: Function, default: () => {} }) onNavigateOnboardMeeting!: () => void | Promise; - - /** * Function prop for handling model value updates * Called when the input value changes for v-model binding diff --git a/src/components/GiftDetailsStep.vue b/src/components/GiftDetailsStep.vue index 7383e7a0..703e16fe 100644 --- a/src/components/GiftDetailsStep.vue +++ b/src/components/GiftDetailsStep.vue @@ -44,7 +44,7 @@ Template streamlined with computed CSS properties * * @author Matthew Raymer */ :value="localAmount" :min="0" input-id="inputGivenAmount" - @update:value="handleAmountChange" + :on-update-value="handleAmountChange" />