From 635780d7d45cf22d5612d06c7ceb1d5bc8de922f Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 27 Feb 2023 13:25:03 -0700 Subject: [PATCH] Et2LinkTo: Fix linking to existing file in VFS did not do anything Onchange was not being set --- api/js/etemplate/Et2Link/Et2LinkTo.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/js/etemplate/Et2Link/Et2LinkTo.ts b/api/js/etemplate/Et2Link/Et2LinkTo.ts index d1b480ae8e..ba683ae16e 100644 --- a/api/js/etemplate/Et2Link/Et2LinkTo.ts +++ b/api/js/etemplate/Et2Link/Et2LinkTo.ts @@ -241,6 +241,7 @@ export class Et2LinkTo extends Et2InputWidget(ScopedElementsMixin(FormControlMix } this.vfs_select = et2_createWidget("vfs-select", select_attrs, this); this.vfs_select.set_readonly(this.readonly); + this.vfs_select.onchange = select_attrs.onchange; this.vfs_select.getDOMNode().slot = "before"; this.append(this.vfs_select.getDOMNode())