You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adjusts markup for specific facets so they use real input elements
72
+
*
73
+
* @param string $output HTML
74
+
* @param array $params FacetWP field parameters
75
+
*
76
+
* @return string Updated HTML output for a facet
77
+
*
78
+
* @todo consider whether a combination of totally custom output and str_replace make sense or whether doing something with the WP HTML API might make more sense in the long term
// Note: The trick to this working was moving the facetwp-checkbox class and data-value attribute to the `input`. Clicking the label works because the input element still emits a click event when the label is clicked. Leaving that class and attribute on the wrapping list item resulted in two events being fired when the label was clicked.
0 commit comments