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

Common tag input component #1643

Merged
merged 8 commits into from
Jun 18, 2024
Merged

Conversation

KD1712
Copy link
Collaborator

@KD1712 KD1712 commented Jun 12, 2024

Component implements ControlValueAccessor to synchronize its value with the parent form control.

@KD1712 KD1712 requested review from Yagnik56 and danoswaltCL June 12, 2024 07:25
@KD1712 KD1712 self-assigned this Jun 12, 2024
@KD1712 KD1712 linked an issue Jun 12, 2024 that may be closed by this pull request
standalone: true,
providers: [
{
provide: NG_VALUE_ACCESSOR,
Copy link
Collaborator

Choose a reason for hiding this comment

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

😎

Copy link
Collaborator

@danoswaltCL danoswaltCL left a comment

Choose a reason for hiding this comment

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

nice! thank you for taking the time to clean up the implementing code.

}

// eslint-disable-next-line @typescript-eslint/no-empty-function
registerOnTouched(fn: any) {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's this for? can it be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ControlValueAccessor interface mandates to implement its methods which includes registerOnTouched. Currently there is no use for this so i've disabled it

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah, ty

KD1712 and others added 2 commits June 18, 2024 10:18
* Using Tag input component in FF Add feature flag modal

* Made tags as empty array in formbuilder. Removed required attribute from component
@danoswaltCL danoswaltCL self-requested a review June 18, 2024 14:21
@danoswaltCL danoswaltCL merged commit 0978442 into dev Jun 18, 2024
8 checks passed
@danoswaltCL danoswaltCL deleted the feature/common-tag-input-component-1607 branch June 18, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Common Tag Input Component
2 participants