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:descriptions) #3330

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

congzhangzh
Copy link

@congzhangzh congzhangzh commented Jul 1, 2023

trigger prepare data and rerender after child content changed

this fix #3326

馃 This is a ...

  • Bug fix

@github-actions
Copy link

github-actions bot commented Jul 1, 2023

Prepare preview

@congzhangzh
Copy link
Author

@microsoft-github-policy-service agree

@@ -34,12 +34,14 @@ protected override void Dispose(bool disposing)
{
this.Descriptions?.Items.Remove(this);
base.Dispose(disposing);
this.Descriptions?.ReRender();
}
Copy link
Member

@ElderJames ElderJames Jul 1, 2023

Choose a reason for hiding this comment

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

It鈥榮 better to add a pair of method for Descriptions naming 'AddItem' and RemoveItem, then call them in DescriptionItems.

Copy link
Author

Choose a reason for hiding this comment

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

done

trigger prepare data and rerender after child content changed
@congzhangzh
Copy link
Author

@dotnet-policy-service agree

@congzhangzh
Copy link
Author

@ElderJames please check again:)

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.

Descriptions Component does not support dynamic Description collection
2 participants