Skip to content

Commit 8ca599e

Browse files
committed
Fix: dropdown is the select, not its child.
1 parent e155896 commit 8ca599e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/widgets/class-wp-widget-categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function onSelectChange() {
103103
if ( 'escape' === dropdown.dataset.lastkey ) {
104104
return;
105105
}
106-
if ( dropdown.value && parseInt( dropdown.value ) > 0 && dropdown.parentElement instanceof HTMLSelectElement ) {
106+
if ( dropdown.value && parseInt( dropdown.value ) > 0 && dropdown instanceof HTMLSelectElement ) {
107107
dropdown.parentElement.submit();
108108
}
109109
}, 250 );

0 commit comments

Comments
 (0)