Skip to content

Commit

Permalink
fix(popover): onFocus (#1695)
Browse files Browse the repository at this point in the history
* fix:(popover): onFocus

Signed-off-by: Sepush <[email protected]>

* docs(changelog): add changelog

Signed-off-by: Sepush <[email protected]>
  • Loading branch information
Sepush authored Nov 28, 2021
1 parent 49e3543 commit 9a539f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/popover/src/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export default defineComponent({
},
onFocus: (e: FocusEvent) => {
ascendantAndCurrentHandlers.forEach((_handlers) => {
_handlers.onBlur(e)
_handlers.onFocus(e)
})
},
onClick: (e: MouseEvent) => {
Expand Down

0 comments on commit 9a539f4

Please sign in to comment.