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

fix(button): mouseLeave trigger error #1641

Merged
merged 1 commit into from
Dec 8, 2021
Merged

fix(button): mouseLeave trigger error #1641

merged 1 commit into from
Dec 8, 2021

Conversation

berber1016
Copy link
Contributor

@berber1016 berber1016 commented Dec 8, 2021

  1. 修复button disabled时 onMouseLeave 触发机制问题 浏览器原生button disabled时,会导致无法触发鼠标事件,比如:onMouseLeave/Enter/Out 等等,外层包裹了div后可以触发onMouseEnter事件了,但是还无法触发Leave,是因为鼠标事件的target为 button时,导致无法触发。
  2. 修复select 组件 disabledTooltip 宽度问题 https://www.zhangxinxu.com/wordpress/2015/05/css3-transform-affect/ 问题背景为transform会影响position:absoulte/fixed 的一些属性 比如:宽度,相对定位等

@vercel
Copy link

vercel bot commented Dec 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/growingio/gio-design/2SsGDZn22i9wQDAFSX9s9SDZACuH
✅ Preview: https://gio-design-git-fix-button-growingio.vercel.app

@sonarcloud
Copy link

sonarcloud bot commented Dec 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@berber1016 berber1016 merged commit b0d78b4 into master Dec 8, 2021
@berber1016 berber1016 deleted the fix-button branch December 8, 2021 07:08
jack0pan pushed a commit that referenced this pull request Dec 9, 2021
# [22.5.0](v22.4.1...v22.5.0) (2021-12-09)

### Bug Fixes

* **button:** button disabled error ([#1649](#1649)) ([89df998](89df998))
* **button:** mouseLeave trigger error ([#1641](#1641)) ([b0d78b4](b0d78b4))
* **components:** fix some components data-testid ([#1635](#1635)) ([f76ef30](f76ef30))
* **dropdown:** dropdown keydown error ([#1653](#1653)) ([0759445](0759445))
* **filter-condition:** 组件国际化问题 ([#1650](#1650)) ([eb25fc2](eb25fc2))
* **Input:** fix input issues ([#1644](#1644)) ([d5d03c3](d5d03c3))
* **list-picker:** add recent id change localKey ([#1636](#1636)) ([3590ced](3590ced))
* **list:** list style ([#1652](#1652)) ([4a9946c](4a9946c))
* **select:** attr autoWidth default false ([#1646](#1646)) ([8ef8e75](8ef8e75))
* **table:** fix table style ([#1640](#1640)) ([0018d49](0018d49))
* **table:** modify empty node size from 'normal' to 'small' ([#1643](#1643)) ([0254879](0254879))

### Features

* **filter-picker:** 支出用户标签数值日期类型 ([#1645](#1645)) ([9c8c2ed](9c8c2ed))
@jack0pan
Copy link
Member

jack0pan commented Dec 9, 2021

🎉 This PR is included in version 22.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants