diff --git a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts index b15a7cd3e4..2ffbfcc06f 100644 --- a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts +++ b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts @@ -321,7 +321,7 @@ export const Et2WidgetWithSelectMixin = >(supe { this.select_options = new_options; } - let others = _node.querySelectorAll(":not(option)"); + let others = _node.querySelectorAll(":scope > :not(option)"); // Load the child nodes. others.forEach((node) => {