diff --git a/src/js/widgets-controller.js b/src/js/widgets-controller.js index 8874ef2b..ef05e40c 100644 --- a/src/js/widgets-controller.js +++ b/src/js/widgets-controller.js @@ -29,7 +29,8 @@ const initForm = (formElement) => { widgets = _widgets.filter( (widget) => widget.selector && - formElement.querySelector(widget.selector) != null + (widget.selector === 'form' || + formElement.querySelector(widget.selector) != null) ); };