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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module:table) Table exception on refresh #1040

Merged

Conversation

anddrzejb
Copy link
Member

馃 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

This issue can be demonstrated on the demo pages for tables, but should surface anytime Table component is used (and actually any other component that uses Overlay). After page refresh, in about a minute a whole bunch of exceptions can be observed in the console (the log file is based on demo docs; it is pure 40kb text):
tableExceptionsOnReload.log

馃挕 Background and solution

The fix is similar to PR #1008.
On top of that, there are also fixes to Overlay component. There were calls to no longer existing trigger elements based on no longer existing element classes (at least I could not find them and it does not really makes any sense to have those calls in my eyes). Also, there were calls to overlay container regardless if container was added - so extra check for that was added.
After the changes no exceptions are thrown.

As a side note - it is likely that any component that has js interop calls during its Dispose() method will have the same issue as the Table component.

鈽戯笍 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

@codecov-io
Copy link

codecov-io commented Jan 24, 2021

Codecov Report

Merging #1040 (e01e66b) into master (cd7f3b9) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1040      +/-   ##
=========================================
- Coverage    5.47%   5.43%   -0.04%     
=========================================
  Files         433     433              
  Lines       23284   23297      +13     
=========================================
- Hits         1274    1266       -8     
- Misses      22010   22031      +21     
Impacted Files Coverage 螖
components/core/Component/overlay/Overlay.razor.cs 12.21% <0.00%> (-0.42%) 猬囷笍
components/table/Table.razor.cs 0.00% <0.00%> (酶)
components/core/Base/AntComponentBase.cs 35.89% <0.00%> (-6.42%) 猬囷笍
components/core/Base/AntDomComponentBase.cs 60.00% <0.00%> (-3.34%) 猬囷笍
components/core/JsInterop/JSInteropConstants.cs 4.65% <0.00%> (-2.33%) 猬囷笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update cd7f3b9...e01e66b. Read the comment docs.

@ElderJames ElderJames merged commit 64dd804 into ant-design-blazor:master Jan 25, 2021
@anddrzejb anddrzejb deleted the tableExceptionOnRefresh branch January 25, 2021 06:05
ElderJames pushed a commit that referenced this pull request Apr 23, 2022
* fix(module:overlay): remove obsolete js call

check for Ref.Id before any js operation on it

* fix(module:table): js interop exceptions on dispose

* docs(module:slider): typo fix

* docs(module:spider): typ
ElderJames pushed a commit that referenced this pull request Apr 30, 2022
* fix(module:overlay): remove obsolete js call

check for Ref.Id before any js operation on it

* fix(module:table): js interop exceptions on dispose

* docs(module:slider): typo fix

* docs(module:spider): typ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants