ng-alain / ng-alain

NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
https://ng-alain.com
MIT License
4.54k stars 1.16k forks source link

ST Buttons 必须点击文字才能触发Click,希望点击菜单行就能触发 #2307

Closed Coolioyang closed 2 years ago

Coolioyang commented 2 years ago

Reproduction link

[https://ng-alain.com/components/st/zh?#components-st-buttons) ST文档,自定义按钮示例

Steps to reproduce

展开下拉菜单“更多”,后点击任意菜单文字后的空白区域,不触发Click,但是菜单关闭了,违反操作直觉

What is expected?

整个菜单行可以触发click

What is actually happening?

不触发Click,但是菜单关闭了,违反操作直觉

Environment Info
ng-alain 14.0.0
Browser any
alain-bot[bot] commented 2 years ago

Translation of this issue:

St Buttons must click on the text to trigger the click.

REPRODUCTION LINK

[https://ng- alain.com/components/zh?#components-st-buttons) ST document, custom button example

STEPS To Reproduce

Expand the drop -down menu "More", and then click on the blank area after any menu text, which does not trigger the CLICK, but the menu is closed and violated the operation intuition

What is exfected?

The entire menu can trigger the click

What is actually happy?

Do not trigger the click, but the menu is closed, violating the operation intuition

ENVIRONMENT Info
ng-alain 14.0.0
Browser ANY