Skip to content

Commit

Permalink
Merge branch 'develop' into fix/default-value-for-stateful
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Dec 5, 2023
2 parents fb612e3 + 82e545a commit 90fdd3a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</template>

<script lang="ts">
import { defineComponent, ref, toRefs, computed, watch, type PropType } from 'vue'
import { defineComponent, ref, toRefs, computed, watch, onMounted, type PropType } from 'vue'
import { useFormFieldProps } from '../../../../composables'
Expand Down Expand Up @@ -160,6 +160,12 @@ export default defineComponent({
set: (v: string) => emit('autocomplete-input', v),
})
onMounted(() => {
if (props.multiple) { return }
autocompleteInputValueComputed.value = props.valueString as string
})
watch(focused, (newValue) => {
if (!props.autocomplete || !newValue) { return }
Expand Down

0 comments on commit 90fdd3a

Please sign in to comment.