mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
only remove size attribute from input like widgets: textbox, number, url-*, vfs-*, leave it for all others like *avatar
This commit is contained in:
parent
3a0f1e7964
commit
6c9d6fd13f
@ -384,8 +384,9 @@ function send_template()
|
||||
unset($attrs['class']);
|
||||
}
|
||||
|
||||
// Drop all (old) size attributes, if it's not shoelace size format: small, medium or large
|
||||
if (isset($attrs['size']) && !in_array($attrs['size'], ['small', 'medium', 'large']))
|
||||
// Drop all (old) size attributes of input like fields, if it's not shoelace size format: small, medium or large
|
||||
if (preg_match('/^<et2-(textbox|number|int|float|password|url|vfs-|input)/', $matches[0]) &&
|
||||
isset($attrs['size']) && !in_array($attrs['size'], ['small', 'medium', 'large']))
|
||||
{
|
||||
unset($attrs['size']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user