From c329181d200647cadbca6a320050dde7016c0cd1 Mon Sep 17 00:00:00 2001 From: hadi Date: Thu, 30 Mar 2023 16:04:52 +0200 Subject: [PATCH] Fix broken vfsPath widget --- api/js/etemplate/et2_widget_vfs.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/api/js/etemplate/et2_widget_vfs.ts b/api/js/etemplate/et2_widget_vfs.ts index dc31f91f6b..f5ae87d954 100644 --- a/api/js/etemplate/et2_widget_vfs.ts +++ b/api/js/etemplate/et2_widget_vfs.ts @@ -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();