mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 15:59:23 +01:00
Api: If widget has autocomplete="on", set the name attribute for autocomplete
This commit is contained in:
parent
55fe2fec29
commit
e4592e822e
@ -473,6 +473,13 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
||||
{
|
||||
super.transformAttributes(attrs);
|
||||
|
||||
// Set attributes for the form / autofill. It's the individual widget's
|
||||
// responsibility to do something appropriate with these properties.
|
||||
if(this.autocomplete == "on" && window.customElements.get(this.localName).getPropertyOptions("name") != "undefined")
|
||||
{
|
||||
this.name = this.getArrayMgr("content").explodeKey(this.id).pop();
|
||||
}
|
||||
|
||||
// Check whether an validation error entry exists
|
||||
if(this.id && this.getArrayMgr("validation_errors"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user