Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popover: won't close with disabled element as trigger #142

Open
cpylua opened this issue Apr 5, 2017 · 4 comments
Open

popover: won't close with disabled element as trigger #142

cpylua opened this issue Apr 5, 2017 · 4 comments

Comments

@cpylua
Copy link
Contributor

cpylua commented Apr 5, 2017

Popover won't close when moving out from trigger if the trigger is disabled.

Related issue:

Workaround: react-component/tooltip#18 (comment)

@cpylua
Copy link
Contributor Author

cpylua commented Apr 5, 2017

The normal state transition for hover leave is out -> in -> out, a possible work-around is to add an option: quirk to skip the out -> in check.

@cpylua cpylua added the bug label Apr 10, 2017
@cpylua
Copy link
Contributor Author

cpylua commented Apr 26, 2017 via email

@cpylua cpylua added the feature label May 19, 2017
@cpylua cpylua changed the title popover: bug with disabled element popover: won't close with disabled element Nov 12, 2019
@cpylua cpylua changed the title popover: won't close with disabled element popover: won't close with disabled element as trigger Nov 12, 2019
@cpylua cpylua added wontfix and removed feature labels Nov 12, 2019
@cpylua
Copy link
Contributor Author

cpylua commented Feb 26, 2021

Workaround: react-component/tooltip#18 (comment)

@cpylua
Copy link
Contributor Author

cpylua commented Dec 8, 2021

目前 Popover / Pop / Tooltip 已经通过 fixTooltipOnDisabledChildren 参数来支持 Zent 组件库内的 Button, Input, Checkbox, Radio 的组件;自定义的组件需要自行通过上面提到的方案处理。

@w91 w91 mentioned this issue Feb 10, 2022
w91 pushed a commit that referenced this issue Feb 10, 2022
- ✨ 新增 `type ="icon"` 按钮类型
- ✨ 新增 `type="text"` 按钮类型
- 🦀️ 修改次级按钮样式

## break change
- 🦀️ disabled的按钮外层套了一层父元素,以支持 cursor: not-allowed  #142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant