ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.54k stars 2.38k forks source link

fix(VirtualInput): should not block of long press #6477

Closed zombieJ closed 7 months ago

zombieJ commented 7 months ago

长按后聚焦元素不在 root 上,关闭逻辑里加一个聚焦让它可以正确触发。

close #6474

PS: 测试中调用 blur 事件即便 activeElement 不在元素上也能触发,看起来测试中没有办法去模拟真实的场景。

codecov[bot] commented 7 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (dcff0b8) 92.28% compared to head (eb11ebf) 92.24%.

Files Patch % Lines
src/components/number-keyboard/number-keyboard.tsx 0.00% 2 Missing :warning:
src/components/virtual-input/virtual-input.tsx 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6477 +/- ## ========================================== - Coverage 92.28% 92.24% -0.04% ========================================== Files 316 316 Lines 6866 6872 +6 Branches 1720 1722 +2 ========================================== + Hits 6336 6339 +3 - Misses 494 497 +3 Partials 36 36 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 7 months ago

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6477.surge.sh

github-actions[bot] commented 7 months ago

Size Change: +90 B (0%)

Total Size: 367 kB

Filename Size Change
./lib/bundle/antd-mobile.compatible.umd.js 195 kB +48 B (0%)
./lib/bundle/antd-mobile.umd.js 153 kB +42 B (0%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./lib/bundle/css-vars-patch.css` | 1.42 kB | | `./lib/bundle/style.css` | 18 kB |

compressed-size-action