Skip to content

Commit

Permalink
fix(dropdown): inner link click trigger area is not the entire option,
Browse files Browse the repository at this point in the history
…closes #823
  • Loading branch information
07akioni committed Aug 19, 2021
1 parent 74df684 commit ee83140
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- Fix `n-notification`'s exported `NotificationReactive` type is not writable, closes [#876](https://github.com/TuSimple/naive-ui/issues/876).
- Fix `n-tabs` style glitches when different types tabs are nested, closes [#850](https://github.com/TuSimple/naive-ui/issues/850).
- Fix `n-dropdown`'s inner link click trigger area is not the entire option, closes [#823](https://github.com/TuSimple/naive-ui/issues/823).

## 2.16.4 (2021-08-16)

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- 修复 `n-notification` 导出的 `NotificationReactive` 类型不可变,关闭 [#876](https://github.com/TuSimple/naive-ui/issues/876)
- 修复 `n-tabs` 不同类型嵌套样式错乱,关闭 [#850](https://github.com/TuSimple/naive-ui/issues/850)
- 修复 `n-dropdown` 内部的链接点击触发区域不是整个选项,关闭 [#823](https://github.com/TuSimple/naive-ui/issues/823)

## 2.16.4 (2021-08-16)

Expand Down
2 changes: 1 addition & 1 deletion src/dropdown/src/DropdownOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default defineComponent({
`${clsPrefix}-dropdown-option-body__prefix--show-icon`
]}
>
{renderIcon ? renderIcon(rawNode) : render(rawNode.icon)}
{[renderIcon ? renderIcon(rawNode) : render(rawNode.icon)]}
</div>
<div
__dropdown-option
Expand Down
8 changes: 4 additions & 4 deletions src/dropdown/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ export default cB('dropdown-menu', `
box-shadow .3s var(--bezier);
`, [
fadeInScaleUpTransition(),
cB('dropdown-option', {
position: 'relative'
}, [
cB('dropdown-option', `
position: relative;
`, [
c('a', `
text-decoration: none;
color: inherit;
`, [
c('&::before', `
content: "",
content: "";
position: absolute;
left: 0;
right: 0;
Expand Down

0 comments on commit ee83140

Please sign in to comment.