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

fix(tw): select input component rewrite #4337

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidruvolo51
Copy link
Contributor

What are the main changes you did:

  • explain what you changed and essential considerations.

how to test:

  • explain here what to do to test this (or point to unit tests)

todo:

  • updated docs in case of new feature
  • added/updated tests
  • added/updated testplan to include a test for this fix, including ref to bug using # notation

Copy link

@mswertz mswertz changed the title fix (tw): select input component rewrite fix(tw): select input component rewrite Oct 13, 2024
@davidruvolo51 davidruvolo51 self-assigned this Oct 14, 2024
Comment on lines +2 to +5
interface ISelectOptions {
value: string | number;
label?: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

As I currently am building a screen where I want to use this component, I would like to insert objects with label as one of its fields. Would you be against adding this?


withDefaults(
defineProps<{
id: string;
modelValue: string | number;
options: string[] | number[];
selectOptions: ISelectOptions[];
Copy link
Contributor

Choose a reason for hiding this comment

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

note this changes the public api, all use cases need to be updated

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.

3 participants