Skip to content

Commit

Permalink
fix(Combobox): input throw warning when pass as a component (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Feb 7, 2024
1 parent 2a0266e commit b5cb05c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/radix-vue/src/Combobox/ComboboxInput.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts">
import type { PrimitiveProps } from '@/Primitive'
import { useForwardExpose } from '@/shared'
import { reactiveOmit } from '@vueuse/shared'
export interface ComboboxInputProps extends PrimitiveProps {
/** Nactive input type */
Expand Down Expand Up @@ -64,14 +63,15 @@ function handleInput(event: Event) {
rootContext.isUserInputted.value = true
}
const pickedProps = reactiveOmit(props, 'autoFocus')
</script>

<template>
<Primitive
v-bind="pickedProps"
:ref="forwardRef"
:as="as"
:as-child="asChild"
:type="type"
:disabled="disabled"
:value="rootContext.searchTerm.value"
:aria-expanded="rootContext.open.value"
:aria-controls="rootContext.contentId"
Expand Down

0 comments on commit b5cb05c

Please sign in to comment.