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: (Core) Add token validate function to MultiInput #4621

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

JKMarkowski
Copy link
Contributor

Please provide a link to the associated issue.

part of #4483

Please provide a brief summary of this pull request.

There is added multi input new token validation method.

Please check whether the PR fulfills the following requirements

Documentation checklist:

@JKMarkowski JKMarkowski added this to the Sprint 55 - Monaco milestone Feb 9, 2021
@JKMarkowski JKMarkowski requested a review from a team February 9, 2021 11:21
@JKMarkowski JKMarkowski self-assigned this Feb 9, 2021
@JKMarkowski JKMarkowski added this to In progress in Development via automation Feb 9, 2021
@netlify
Copy link

netlify bot commented Feb 9, 2021

Deploy preview for fundamental-ngx ready!

Built with commit 6246937

https://deploy-preview-4621--fundamental-ngx.netlify.app

}

validateFunc(value: string): boolean {
return value && value.length >= 3
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
return value && value.length >= 3
return value?.length >= 3

@@ -481,14 +488,21 @@ export class MultiInputComponent implements
});
}

/** @hidden */
private defaultDisplay(str: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

please add _

private defaultDisplay(str: string): string {
return str;
}

/** @hidden */
private defaultParse(str: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

the same

private defaultParse(str: string): string {
return str;
}

/** @hidden */
private defaultTokenValidate(str: string): boolean {
Copy link
Contributor

Choose a reason for hiding this comment

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

the same

@mikerodonnell89
Copy link
Member

mikerodonnell89 commented Feb 10, 2021

Will be good to merge after addressing @Betrozov 's comments

@JKMarkowski
Copy link
Contributor Author

@Betrozov Thanks for comments, could you recheck it now?

@JKMarkowski JKMarkowski force-pushed the fix/multi-input-validate-tokens branch from 6116a5d to 6246937 Compare February 11, 2021 15:34
@droshev droshev self-requested a review February 11, 2021 16:05
@droshev droshev merged commit d55fc97 into main Feb 11, 2021
Development automation moved this from In progress to Done Feb 11, 2021
@droshev droshev deleted the fix/multi-input-validate-tokens branch February 11, 2021 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants