mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-27 16:15:42 +02:00
only return "" for blur-value, if browser does not support html5 placeholder
This commit is contained in:
@@ -161,7 +161,13 @@ export class et2_textbox extends et2_inputWidget implements et2_IResizeable
|
||||
|
||||
getValue()
|
||||
{
|
||||
if(this.options && this.options.blur && this.input.val() == this.options.blur) return "";
|
||||
// only return "" for blur-value, if browser does not support html5 placeholder
|
||||
if (this.options && this.options.blur &&
|
||||
!(<HTMLInputElement>this.input[0]).placeholder &&
|
||||
this.input.val() == this.options.blur)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return super.getValue();
|
||||
}
|
||||
|
Reference in New Issue
Block a user