From 63e566ad6c22ca1e41d9f021fc8e829a3644f142 Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 16 Nov 2024 14:04:08 +0100 Subject: [PATCH] fix not working trailingSlash validation since dropping of Lion framework --- api/js/etemplate/Et2Url/Et2Url.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Url/Et2Url.ts b/api/js/etemplate/Et2Url/Et2Url.ts index 4320510078..ea00a9835f 100644 --- a/api/js/etemplate/Et2Url/Et2Url.ts +++ b/api/js/etemplate/Et2Url/Et2Url.ts @@ -80,16 +80,16 @@ export class Et2Url extends Et2InvokerMixin(Et2Textbox) */ _oldChange(_ev: Event): boolean { - const value = this.modelValue; + const value = this.value; if (typeof this.trailingSlash !== 'undefined' && value && this.trailingSlash !== (value.substr(-1)==='/')) { if (!this.trailingSlash) { - this.modelValue = value.replace(/\/+$/, ''); + this.value = value.replace(/\/+$/, ''); } else { - this.modelValue += '/'; + this.value += '/'; } } return super._oldChange(_ev);