* fix bug max length messsage * change localization --------- Co-authored-by: Lan Nguyen Thuy <lnt@umbraco.dk>
This commit is contained in:
@@ -88,6 +88,10 @@ export class UmbPropertyEditorUITextBoxElement
|
||||
@input=${this.#onInput}
|
||||
?required=${this.mandatory}
|
||||
.requiredMessage=${this.mandatoryMessage}
|
||||
.maxlengthMessage=${() => {
|
||||
const exceeded = (this.value?.length ?? 0) - (this._maxChars ?? 0);
|
||||
return this.localize.term('textbox_characters_exceed', this._maxChars, exceeded);
|
||||
}}
|
||||
?readonly=${this.readonly}></uui-input>`;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,6 +90,10 @@ export class UmbPropertyEditorUITextareaElement
|
||||
@input=${this.#onInput}
|
||||
?required=${this.mandatory}
|
||||
.requiredMessage=${this.mandatoryMessage}
|
||||
.maxlengthMessage=${() => {
|
||||
const exceeded = (this.value?.length ?? 0) - (this._maxChars ?? 0);
|
||||
return this.localize.term('textbox_characters_exceed', this._maxChars, exceeded);
|
||||
}}
|
||||
?readonly=${this.readonly}></uui-textarea>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user