From: Alan Date: Wed, 3 Jan 2024 02:59:36 +0000 (+0800) Subject: fix pasted email address with white space and getting validated X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=06ed30060a49d55b7e031d53bba64f8789494d6a fix pasted email address with white space and getting validated --- diff --git a/docs/src/Roo_form_TextField.js.html b/docs/src/Roo_form_TextField.js.html index 5c3ca4a035..8b2c3ba08d 100644 --- a/docs/src/Roo_form_TextField.js.html +++ b/docs/src/Roo_form_TextField.js.html @@ -245,6 +245,11 @@ } if(this.vtype){ var vt = Roo.form.VTypes; + if (value.trim() != value) { // trim before checking email (and other stuf??) + value = value.trim(); + this.el.dom.value = value; + } + if(!vt[this.vtype](value, this)){ this.markInvalid(this.vtypeText || vt[this.vtype +'Text']); return false;