fix(popover): onFocus (#1695)

* fix:(popover): onFocus

Signed-off-by: Sepush <sepush@outlook.com>

* docs(changelog): add changelog

Signed-off-by: Sepush <sepush@outlook.com>
This commit is contained in:
Sepush 2021-11-28 14:32:37 +08:00 committed by GitHub
parent 49e3543aac
commit 9a539f402a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
- Fix `n-log`'s `trim` prop not being independent when used.
- Fix `n-slider` processing of step value precision.
- Fix `n-date-picker` throw error when `time-picker` input is empty, closes [#1678](https://github.com/TuSimple/naive-ui/issues/1678).
- Fix `n-popover` not working when `trigger` is `focus`.
- Fix `n-scrollbar` judement error on mouse up away.
### Feats

View File

@ -9,6 +9,7 @@
- 修复 `n-log``trim` 属性不能独立使用
- 修复 `n-slider` 对于数值精度的处理问题
- 修复 `n-date-picker``time-picker` 输入为空时报错,关闭 [#1678](https://github.com/TuSimple/naive-ui/issues/1678)
- 修复 `n-popover``trigger``focus` 不生效的问题
- 修复 `n-scrollbar` 对于鼠标外部抬起事件触发对象的判断
### Feats

View File

@ -477,7 +477,7 @@ export default defineComponent({
},
onFocus: (e: FocusEvent) => {
ascendantAndCurrentHandlers.forEach((_handlers) => {
_handlers.onBlur(e)
_handlers.onFocus(e)
})
},
onClick: (e: MouseEvent) => {