-
-
Notifications
You must be signed in to change notification settings - Fork 364
feat(MultiSelect): add CloseButtonIcon parameter #5662
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,7 +168,8 @@ public async Task FlagEnum_Ok() | |
| Assert.Equal(2, values.Count); | ||
|
|
||
| // 选中第四个 | ||
| var item = cut.FindAll(".dropdown-menu .dropdown-item").Last(); | ||
| var items = cut.FindAll(".dropdown-menu .dropdown-item"); | ||
| var item = items[items.Count - 1]; | ||
| await cut.InvokeAsync(() => item.Click()); | ||
| values = cut.FindAll(".multi-select-items .multi-select-item"); | ||
| Assert.Equal(3, values.Count); | ||
|
|
@@ -644,7 +645,7 @@ public void ClearIcon_Ok() | |
|
|
||
| cut.SetParametersAndRender(pb => | ||
| { | ||
| pb.Add(a => a.ClearableIcon, "icon-clear-test"); | ||
| pb.Add(a => a.ClearIcon, "icon-clear-test"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (testing): Add test for CloseButtonIcon Since this PR introduces a new |
||
| }); | ||
| Assert.DoesNotContain("fa-regular fa-circle-xmark", cut.Markup); | ||
| Assert.Contains("icon-clear-test", cut.Markup); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Consider aligning the nullability annotations for the new CloseButtonIcon parameter.
Other icon parameters in the component use a [NotNull] annotation. Assess if CloseButtonIcon should be annotated similarly or if its nullability is intentional.