Skip to content

Commit

Permalink
feat(AutoComplete): expose AutoComplete ref
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterCarl committed Oct 14, 2024
1 parent ed8ec6c commit 9610c8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/RisAutoComplete/RisAutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ const onUpdateInnerValue = (
model.value = undefined;
}
};
const autoCompleteRef = ref<typeof AutoComplete | null>(null);
defineExpose({ autoCompleteRef });
</script>

<template>
<AutoComplete
ref="autoCompleteRef"
v-bind="$attrs"
:suggestions="props.suggestions"
:model-value="innerValue"
Expand Down

0 comments on commit 9610c8c

Please sign in to comment.