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

MatSelect fix #1248

Merged
merged 6 commits into from
May 6, 2022
Merged

MatSelect fix #1248

merged 6 commits into from
May 6, 2022

Conversation

TheSlimvReal
Copy link
Collaborator

@TheSlimvReal TheSlimvReal commented May 4, 2022

see issue: #1244

Background: Angular compares the value of a MatSelect with the options that are available in order to find the one that is currently selected. In our case both these values are loaded from the config but in some cases the config changes and therefore the objects might have different references. In this case Angular is not able to match the selected value with the options and does not display anything. [compareWith] allows to overwrite this behavior which we can use to compare the enum values more deeply (source).

Visible/Frontend Changes

  • Labels for MatSelect with configurable enum are correctly displayed when page has just loaded.

Architectural/Backend Changes

  • Using compareWith to correctly match options to values in MatSelect

@github-actions
Copy link

github-actions bot commented May 4, 2022

@TheSlimvReal TheSlimvReal changed the title MatSelect label fix MatSelect fix May 5, 2022
Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

💯

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@TheSlimvReal TheSlimvReal merged commit 37c2e3f into master May 6, 2022
@TheSlimvReal TheSlimvReal deleted the attendance-label-fix branch May 6, 2022 17:06
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.6.0-master.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants