fix(select): popover was not displayed when it was disabled (#4789) (#4790)

Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
Asuna 2023-06-14 00:06:13 +08:00 committed by GitHub
parent 5a161cf4d3
commit 396eb816fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
- Fix `n-upload`'s `render-icon` prop's type.
- Fix `n-tabs`'s `paneWrapperStyle` prop missing height after animation
- Fix `n-tree` should check all items instead of uncheck all if indeterminate checkbox is clicked, closes [#4941](https://github.com/tusen-ai/naive-ui/issues/4941).
- Fix the Popover was not displayed when the `n-internal-selection` was disabled and the mouse was moved over the '+n' tag. closes [#4789](https://github.com/tusen-ai/naive-ui/issues/4789)
### Features

View File

@ -15,6 +15,7 @@
- 修复 `n-upload` `render-icon` 属性的类型
- 修复 `n-tabs``paneWrapperStyle` 属性在动画后丢失高度
- 修复 `n-tree` 在级联选择下点击半选状态勾选框时应选中全部而不是清空已选,关闭 [#4941](https://github.com/tusen-ai/naive-ui/issues/4941)
- 修复 `n-internal-selection``disabled` 时,鼠标移动到 `+n` 标签上时,未展示 popover关闭 [#4789](https://github.com/tusen-ai/naive-ui/issues/4789)
### Features

View File

@ -352,7 +352,7 @@ export default defineComponent({
if (enterTimerId !== null) window.clearTimeout(enterTimerId)
}
function handleMouseEnterCounter (): void {
if (props.disabled || props.active) return
if (props.active) return
clearEnterTimer()
enterTimerId = window.setTimeout(() => {
if (selectedRef.value) {