Skip to content

Commit 849f9e8

Browse files
committed
reset button: add type="reset"
1 parent b6ca04a commit 849f9e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

a11y-add-on-for-facetwp.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ function a11y_addon_transform_facet_markup( $output, $params ) {
134134
$output .= '</fieldset>';
135135
break;
136136

137+
case 'reset':
138+
139+
$output = str_replace('button','button type="reset"',$output);
140+
141+
break;
142+
137143
default:
138144

139145
$id_string = 'id="'.$params['facet']['name'].'" class=';

0 commit comments

Comments
 (0)