IDuxFE / idux

🚀 A UI Component Library for Vue3.x
https://idux.site
MIT License
546 stars 141 forks source link

fix(comp:contro-trigger): overlay closes when scrolling with virtual scroll #1978

Closed sallerli1 closed 3 months ago

sallerli1 commented 3 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

What is the current behavior?

当控件的浮层中有虚拟滚动时,聚焦到虚拟滚动中渲染的选择后,滚动面板使聚焦的选项不再被渲染,会导致浮层失焦从而浮层异常关闭

What is the new behavior?

修复以上问题

影响组件:control-trigger, select, cascader, tree-select, date-picker, time-picker, pro-tag-select

Other information

当聚焦在浮层中,并且触发了wheel事件后,将焦点重置到trigger上

idux-bot[bot] commented 3 months ago

This preview will be available after the AzureCI is passed.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 90.88%. Comparing base (0778970) to head (f6ba541).

Files Patch % Lines
...ents/control-trigger/src/ControlTriggerOverlay.tsx 20.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1978 +/- ## ========================================== - Coverage 90.89% 90.88% -0.01% ========================================== Files 358 358 Lines 35819 35824 +5 Branches 3901 3901 ========================================== + Hits 32557 32558 +1 - Misses 3262 3266 +4 ```

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