-
Notifications
You must be signed in to change notification settings - Fork 752
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
SITES-26750 Accordion : Content editor dialog is adding "None" twice in Expanded Items field #2890
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2890 +/- ##
=========================================
Coverage 87.15% 87.15%
Complexity 2692 2692
=========================================
Files 235 235
Lines 7188 7188
Branches 1100 1100
=========================================
Hits 6265 6265
Misses 365 365
Partials 558 558 ☔ View full report in Codecov by Sentry. |
2 more possible issues I noticed with the original fix, upon further inspection:
Will rectify |
Changed approach to do full cleanup before reinitializing expanded select, including of "None" element. Couldn't see any elements of value "" which we do want to keep, other than "None" element. Would be IMO the safest way to avoid other unforeseen problems, such as if other elements with value "" are added. |
Quality Gate passedIssues Measures |
Fixes #1, Fixes #2
Steps to reproduce bug:
This is caused by the way expanded select is updated: it removes all the current items where value is not "", then adds "None", then readds items from children editor. Issue is fixed by also cleaning up "None" value, whereas this didn't happen before. Adapts fix from #2857