-
Notifications
You must be signed in to change notification settings - Fork 125
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
Conversation
Deploy preview for fundamental-ngx ready! Built with commit 6246937 |
} | ||
|
||
validateFunc(value: string): boolean { | ||
return value && value.length >= 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return value && value.length >= 3 | |
return value?.length >= 3 |
@@ -481,14 +488,21 @@ export class MultiInputComponent implements | |||
}); | |||
} | |||
|
|||
/** @hidden */ | |||
private defaultDisplay(str: string): string { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same
Will be good to merge after addressing @Betrozov 's comments |
@Betrozov Thanks for comments, could you recheck it now? |
6116a5d
to
6246937
Compare
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
https://github.com/SAP/fundamental-ngx/blob/main/CONTRIBUTING.md
https://github.com/SAP/fundamental-ngx/wiki/PR-Review-Checklist
Documentation checklist:
README.md