From a7396cab69ed9731529368e8d34f52fcd6dd9b9b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 2 Nov 2023 08:14:50 -0600 Subject: [PATCH] Fix Uncaught (in promise) TypeError: et2_selectbox.find_select_options is not a function from et2_widget_ajaxSelect --- api/js/etemplate/et2_widget_ajaxSelect.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_ajaxSelect.ts b/api/js/etemplate/et2_widget_ajaxSelect.ts index e6b9cc49bb..dd1dc56f2f 100644 --- a/api/js/etemplate/et2_widget_ajaxSelect.ts +++ b/api/js/etemplate/et2_widget_ajaxSelect.ts @@ -20,8 +20,8 @@ import {et2_register_widget, WidgetConfig} from "./et2_core_widget"; import {et2_inputWidget} from "./et2_core_inputWidget"; import {ClassWithAttributes} from "./et2_core_inheritance"; import {et2_valueWidget} from "./et2_core_valueWidget"; -import {et2_selectbox} from "./et2_widget_selectbox"; import {et2_IDetachedDOM} from "./et2_core_interfaces"; +import {find_select_options} from "./Et2Select/FindSelectOptions"; /** * Using AJAX, this widget allows a type-ahead find similar to a ComboBox, where as the user enters information, @@ -122,7 +122,7 @@ export class et2_ajaxSelect extends et2_inputWidget delay: 100, source: this.options.get_rows ? this.options.get_rows : - et2_selectbox.find_select_options(this, this.options.values), + find_select_options(this, this.options.values), select: function(event, ui) { widget.value = ui.item[widget.options.id_field]; if(widget.options.get_title)