[Legacy Settings] Enable Save button on pages with tables (#51102)

This commit is contained in:
Paul Sealock 2024-09-03 18:39:38 +12:00 committed by GitHub
parent 258ae0b03b
commit bf7e81de8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix Settings Save button when WP List Tables are present

View File

@ -98,9 +98,10 @@
event
) {
// Toggling WP List Table checkboxes should not trigger navigation warnings.
// Theses checkboxes only select/unselect rows, they don't change the form.
if (
$check_column.length &&
$check_column.has( event.target )
$check_column.has( event.target ).length
) {
return;
}