From f5d6c45339290824d48a8a8a93cb0a9987a8957d Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 21 Mar 2024 10:45:30 +0100 Subject: [PATCH] refs #6907 updates --- src/components/common/VnInput.vue | 12 +++++++++--- src/components/common/VnInputDate.vue | 2 +- src/components/common/VnInputTime.vue | 24 +++++++++++++++--------- 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index e2d5641da..4c2aef065 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -41,8 +41,8 @@ const onEnterPress = () => { emit('keyup.enter'); }; -const focus = () => { - vnInputRef.value.focus(); +const handleValue = (val = null) => { + value.value = val; }; defineExpose({ @@ -63,7 +63,7 @@ defineExpose({ :type="$attrs.type" :class="{ required: $attrs.required }" @keyup.enter="onEnterPress()" - :clearable="focus" + :clearable="false" >