mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(select): menu height shifts on close in filterable
mode
This commit is contained in:
parent
cd5f041bd5
commit
6070a8cb57
@ -8,6 +8,7 @@
|
||||
- Fix `n-tree`'s `filter` prop does not work when assigned `children-field` , closes [#1477](https://github.com/TuSimple/naive-ui/issues/1477).
|
||||
- Fix `n-cascader` can't remove options when using customized fields in multiple mode.
|
||||
- Fix `n-select`'s option created by `on-create` doesn't show correct label in trigger, closes [#1482](https://github.com/TuSimple/naive-ui/issues/1482)
|
||||
- Fix `n-select` menu height shifts on close in `filterable` mode.
|
||||
|
||||
### Feats
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
- 修复 `n-tree` 当指定`children-field`时过滤不生效,关闭 [#1477](https://github.com/TuSimple/naive-ui/issues/1477)
|
||||
- 修复 `n-cascader` 在自定义字段和 `multiple` 一起使用时无法删除选项
|
||||
- 修复 `n-select` 使用 `on-create` 创建的选项字段不正确,关闭 [#1482](https://github.com/TuSimple/naive-ui/issues/1482)
|
||||
- 修复 `n-select` 在过滤状态下点击选项菜单闪动
|
||||
|
||||
### Feats
|
||||
|
||||
|
@ -395,7 +395,7 @@ export default defineComponent({
|
||||
function closeMenu (): void {
|
||||
doUpdateShow(false)
|
||||
}
|
||||
function handleMenuLeave (): void {
|
||||
function handleMenuAfterLeave (): void {
|
||||
patternRef.value = ''
|
||||
}
|
||||
function handleTriggerClick (): void {
|
||||
@ -678,7 +678,7 @@ export default defineComponent({
|
||||
handleKeyDown,
|
||||
handleKeyUp,
|
||||
syncPosition,
|
||||
handleMenuLeave,
|
||||
handleMenuAfterLeave,
|
||||
handleMenuClickOutside,
|
||||
handleMenuScroll,
|
||||
handleMenuKeyup: handleKeyUp,
|
||||
@ -757,7 +757,7 @@ export default defineComponent({
|
||||
<Transition
|
||||
name="fade-in-scale-up-transition"
|
||||
appear={this.isMounted}
|
||||
onLeave={this.handleMenuLeave}
|
||||
onAfterLeave={this.handleMenuAfterLeave}
|
||||
>
|
||||
{{
|
||||
default: () =>
|
||||
|
Loading…
Reference in New Issue
Block a user