From d1197cc3fd9cefadfb307d117dc8f16203658a36 Mon Sep 17 00:00:00 2001 From: eyelidlessness Date: Thu, 3 Aug 2023 11:47:43 -0700 Subject: [PATCH] Fix: include widgets with 'form' selector (#993) --- src/js/widgets-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ); };