peckadesign / pd-naja

1 stars 0 forks source link

feature: `Suggest` class can now have a form as a different element than it is initialised on #25

Closed zipper closed 2 months ago

zipper commented 2 months ago

Until now, the element with .js-suggest class where the Suggest is initialised had to be the form element, otherwise the SuggestExtension would not work properly. From now on, the form can either be the .js-suggest itself, or its (indirect) children with class .js-suggest__form.