1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Trigger change event when autoComplete fills in input

Fixes #3271
This commit is contained in:
Nick O'Leary 2021-12-01 14:35:45 +00:00
parent ae76271cff
commit 17ffff685a
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -62,7 +62,7 @@
maxHeight: 200, maxHeight: 200,
class: "red-ui-autoComplete-container", class: "red-ui-autoComplete-container",
options: completions, options: completions,
onselect: (opt) => { this.element.val(opt.value); this.element.focus() }, onselect: (opt) => { this.element.val(opt.value); this.element.focus(); this.element.trigger("change") },
onclose: () => { this.completionMenuShown = false; delete this.menu; this.element.focus()} onclose: () => { this.completionMenuShown = false; delete this.menu; this.element.focus()}
}); });
this.menu.show({ this.menu.show({