Fix broken vfsPath widget

This commit is contained in:
hadi 2023-03-30 16:04:52 +02:00
parent 91c11a72ac
commit 1aa0528642

View File

@ -311,11 +311,6 @@ export class et2_vfsPath extends et2_vfsName
{
// Call the inherited constructor
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_vfsPath._attributes, _child || {}));
}
createInputWidget()
{
super.createInputWidget();
this.div = jQuery(document.createElement("div"))
.addClass('et2_vfsPath');
this.span = jQuery(document.createElement("ul"))
@ -336,6 +331,12 @@ export class et2_vfsPath extends et2_vfsName
jQuery(this).removeClass('scrollable');
}
});
}
createInputWidget()
{
super.createInputWidget();
this.input.on('focus', function() {
this.input.val(this.options.value);
this.span.hide();