forked from extern/egroupware
Etemplate: Fix taglist input was not getting name attribute set since c3bebf9c31
This commit is contained in:
parent
e43331e48b
commit
200aebd171
@ -273,6 +273,8 @@ var et2_taglist = /** @class */ (function (_super) {
|
||||
widget.onfocus.call(widget.taglist, e, widget);
|
||||
});
|
||||
}
|
||||
// Input widget was not created when ID was set, re-set now to make sure input gets name attribute
|
||||
this.set_id(this.id);
|
||||
// Do size limit checks
|
||||
this.resize();
|
||||
// Make sure magicsuggest loses focus class to prevent issues with
|
||||
@ -400,7 +402,7 @@ var et2_taglist = /** @class */ (function (_super) {
|
||||
return label;
|
||||
};
|
||||
et2_taglist.prototype.getInputNode = function () {
|
||||
return this.div ? this.div.filter("input")[0] : null;
|
||||
return this.div ? this.div.find("input")[0] : null;
|
||||
};
|
||||
et2_taglist.prototype.set_autocomplete_url = function (source) {
|
||||
if (source && source[0] != '/' && source.indexOf('http') != 0) {
|
||||
|
@ -422,6 +422,9 @@ export class et2_taglist extends et2_selectbox implements et2_IResizeable
|
||||
});
|
||||
}
|
||||
|
||||
// Input widget was not created when ID was set, re-set now to make sure input gets name attribute
|
||||
this.set_id(this.id);
|
||||
|
||||
// Do size limit checks
|
||||
this.resize();
|
||||
|
||||
@ -576,7 +579,7 @@ export class et2_taglist extends et2_selectbox implements et2_IResizeable
|
||||
|
||||
getInputNode(): HTMLElement
|
||||
{
|
||||
return this.div ? this.div.filter("input")[0] : null;
|
||||
return this.div ? this.div.find("input")[0] : null;
|
||||
}
|
||||
|
||||
set_autocomplete_url(source)
|
||||
|
Loading…
Reference in New Issue
Block a user