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(module select): simulate setTimeout, ensure that the click event is processed properly #3525

Merged
merged 5 commits into from
Dec 23, 2023

Conversation

zxyao145
Copy link
Member

@zxyao145 zxyao145 commented Nov 25, 2023

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • Bundle size optimization
  • Performance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#3521

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English fix: simulate setTimeout, ensure that the click event is processed properly
🇨🇳 Chinese 模拟 setTimeout,确保 click 事件处理完毕

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

Copy link

github-actions bot commented Nov 25, 2023

@zxyao145 zxyao145 force-pushed the fix/diff-click-1125 branch 6 times, most recently from 2111124 to 443f6ea Compare November 25, 2023 15:33
@zxyao145 zxyao145 changed the title [WIP] fix(module select): dom symmetrical difference event fix(module select): dom symmetrical difference event Nov 25, 2023
Copy link

codecov bot commented Nov 25, 2023

Codecov Report

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

Comparison is base (6be83e4) 44.47% compared to head (2a5f249) 44.08%.
Report is 2 commits behind head on master.

Files Patch % Lines
components/select/internal/SelectContent.razor 38.46% 19 Missing and 13 partials ⚠️
components/table/Column.razor.cs 0.00% 26 Missing ⚠️
...mponents/core/JsInterop/modules/dom/eventHelper.ts 0.00% 3 Missing ⚠️
...mponents/select/internal/SelectSuffixIcon.razor.cs 78.57% 3 Missing ⚠️
...nts/core/Component/Overlay/OverlayTrigger.razor.cs 0.00% 2 Missing ⚠️
components/core/JsInterop/DomEventListener.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3525      +/-   ##
==========================================
- Coverage   44.47%   44.08%   -0.40%     
==========================================
  Files         566      566              
  Lines       27182    27218      +36     
  Branches     5577     5583       +6     
==========================================
- Hits        12090    11999      -91     
- Misses      14101    14233     +132     
+ Partials      991      986       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zxyao145 zxyao145 changed the title fix(module select): dom symmetrical difference event fix(module select): simulate setTimeout Nov 25, 2023
@zxyao145 zxyao145 changed the title fix(module select): simulate setTimeout fix(module select): simulate setTimeout, ensure that the click event is processed properly Nov 25, 2023
{
await Task.Delay(4);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it 4ms?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In JS, 4ms is a better configuration, and I think the same goes for Blazor.

https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout

@ElderJames
Copy link
Member

I found another issue.
select-issue

@zxyao145 zxyao145 force-pushed the fix/diff-click-1125 branch 2 times, most recently from 8eed893 to 957cfe7 Compare December 12, 2023 15:36
fix: bunit cannot handle js event
@ElderJames
Copy link
Member

Meet another issue that cause exception after open two filter.
table-filter-forcus-issue

@ElderJames
Copy link
Member

Meet another issue that cause exception after open two filter. table-filter-forcus-issue table-filter-forcus-issue

This have been fixed via #3543

@ElderJames ElderJames merged commit fd73cc9 into ant-design-blazor:master Dec 23, 2023
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants