-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
2.0.0-beta.5
Environment
"ant-design-vue": "^2.0.0-beta.9","vue": "^3.0.0-rc.1",
Reproduction link
https://2x.antdv.com/components/input-cn/
Steps to reproduce
<template>
Here is dashboard!
<AButton @click="routerPush('/app/home')">Enter</AButton>
<a-input-search v-model:value="val" placeholder="input search text" @search="onSearch" />
</template>
<script>
import { ref } from 'vue'
import { useRouterTo } from '../hooks/useRouterTo.js'
export default {
setup() {
const val = ref('')
function onSearch() {
console.log(val.value)
}
const { routerPush } = useRouterTo()
return {
routerPush,
onSearch,
val,
}
},
}
</script>
What is expected?
Type numbers or letters in English input methods can get value succes. But in Chinese input method cannot.
What is actually happening?
First press get empty, second press can get value.
Original Input perform good.