Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Fix: include widgets with 'form' selector (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Aug 3, 2023
1 parent 4c605d9 commit d1197cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/widgets-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
};

Expand Down

0 comments on commit d1197cc

Please sign in to comment.