fix(input-tel): add fieldName

This commit is contained in:
Thijs Louisse 2022-03-22 09:27:03 +01:00 committed by Thijs Louisse
parent f7df1ae822
commit a38c014b6c

View file

@ -114,6 +114,17 @@ export class LionInputTel extends LocalizeMixin(LionInput) {
return PhoneUtilManager.loadComplete; 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 * @lifecycle platform
*/ */