I am trying to implement this widget and getting some odd behavior in Plone 5.2 that appears to be because of how QuerySourceCheckboxWidget (from which this widget inherits) is built.
My setup is a standard 5.x Plone form that inherits from plone.autoform.form.AutoExtensibleForm and z3c.form.form and uses a zope schema.
The view template displays the rendered form as well some search results. Before the form is submitted the behavior works as expected. After a search is performed, the rendered form includes a "search" button on the field's fieldControls section and typing in the input box no longer prompts any js. The "search" button seems to be coming from QuerySubForm.
This behavior is so odd that I assume I either implemented something wrong or this widget is not meant to be used in cases where the value is set from request data.
I am trying to implement this widget and getting some odd behavior in Plone 5.2 that appears to be because of how QuerySourceCheckboxWidget (from which this widget inherits) is built.
My setup is a standard 5.x Plone form that inherits from plone.autoform.form.AutoExtensibleForm and z3c.form.form and uses a zope schema.
The view template displays the rendered form as well some search results. Before the form is submitted the behavior works as expected. After a search is performed, the rendered form includes a "search" button on the field's fieldControls section and typing in the input box no longer prompts any js. The "search" button seems to be coming from QuerySubForm.
This behavior is so odd that I assume I either implemented something wrong or this widget is not meant to be used in cases where the value is set from request data.