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

Improve _value type for single select: Allow arbitrary values #7429

Open
wants to merge 2 commits into
base: release/2
Choose a base branch
from

Conversation

sdvg
Copy link
Member

@sdvg sdvg commented Feb 28, 2025

Refs: #7387

The A11y and PO reviews will only take place after all other DoD steps have been completed by the Developer:

  • Meaningful pull request title for the release notes
  • Pull request is linked to an issue and all changes relate to the issue
  • Tests to protect this code implemented (if applicable)
  • Manual test performed successfully (if applicable)
  • Documentation or migration has been updated (if applicable)

Copy link
Contributor

@sdvg sdvg linked an issue Feb 28, 2025 that may be closed by this pull request
@sdvg sdvg marked this pull request as ready for review February 28, 2025 11:36
@sdvg sdvg added the v2 label Feb 28, 2025
public validateValue(value?: string): void {
watchString(this.component, '_value', value);
public validateValue(value?: StencilUnknown): void {
watchValidator(this.component, '_value', Boolean, new Set([`StencilUnknown`]), value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
watchValidator(this.component, '_value', Boolean, new Set([`StencilUnknown`]), value);
watchValidator(this.component, '_value', v => v !== undefined, new Set([`StencilUnknown`]), value);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type-Fehler beim _value-Property des Single-Select.
2 participants