fix(input-tel): add fieldName
This commit is contained in:
parent
f7df1ae822
commit
a38c014b6c
1 changed files with 11 additions and 0 deletions
|
|
@ -114,6 +114,17 @@ export class LionInputTel extends LocalizeMixin(LionInput) {
|
|||
return PhoneUtilManager.loadComplete;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a default name for this field, so that validation feedback will be always
|
||||
* accessible and linguistically correct
|
||||
* @configure FormControlMixin
|
||||
*/
|
||||
// @ts-expect-error
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
get fieldName() {
|
||||
return localize.msg('lion-input-tel:phoneNumber');
|
||||
}
|
||||
|
||||
/**
|
||||
* @lifecycle platform
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue