Skip to content

Angular Material: Remove EnumOption[] type from AutocompleteControlRenderer.options#2550

Open
daniel-shuy wants to merge 1 commit intoeclipsesource:masterfrom
daniel-shuy:angular-material/remove-enumoption-from-autocomplete-control-renderer-options
Open

Angular Material: Remove EnumOption[] type from AutocompleteControlRenderer.options#2550
daniel-shuy wants to merge 1 commit intoeclipsesource:masterfrom
daniel-shuy:angular-material/remove-enumoption-from-autocomplete-control-renderer-options

Conversation

@daniel-shuy
Copy link
Contributor

In #2535, I changed AutocompleteControlRenderer.options from string[] to EnumOption[] | string[], then mapped the EnumOption[] | string[] to EnumOption[], which was the type of the internal options prop, using the stringOptionsToEnumOptions function.

This allowed users of the AutocompleteControlRenderer to pass EnumOptions with differing label and value, which should not be allowed.

@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 457b219
🔍 Latest deploy log https://app.netlify.com/projects/jsonforms-examples/deploys/69a509e44f9ca000089e2232
😎 Deploy Preview https://deploy-preview-2550--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

I don't fully understand. Why should we not allow the users to pass their own non-matching label/value pairs?

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.

2 participants