Skip to main content
added 124 characters in body
Source Link

I ran into this same problem and did some digging. The jQuery selector to find the checkboxes includes an iedit class on the table <tr> elements. I assume this class is added via JavaScript on tables that have inline editing, but my <tr> elements had no classes as I'm not using inline editing.

I was able to solve the issue by adding this method to my table class. You may need to do some minor tweaking to get the iedit class there if you already have a class attribute on your rows.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}

And here's the source JavaScript with the issue: https://github.com/WordPress/wordpress-develop/blob/b4889e474c77ba4ed7a492441fd948eb124a3e77/src/js/_enqueues/admin/common.js#L1172

I ran into this same problem and did some digging. The jQuery selector to find the checkboxes includes an iedit class on the table <tr> elements. I assume this class is added via JavaScript on tables that have inline editing, but my <tr> elements had no classes as I'm not using inline editing.

I was able to solve the issue by adding this method to my table class.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}

And here's the source JavaScript with the issue: https://github.com/WordPress/wordpress-develop/blob/b4889e474c77ba4ed7a492441fd948eb124a3e77/src/js/_enqueues/admin/common.js#L1172

I ran into this same problem and did some digging. The jQuery selector to find the checkboxes includes an iedit class on the table <tr> elements. I assume this class is added via JavaScript on tables that have inline editing, but my <tr> elements had no classes as I'm not using inline editing.

I was able to solve the issue by adding this method to my table class. You may need to do some minor tweaking to get the iedit class there if you already have a class attribute on your rows.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}

And here's the source JavaScript with the issue: https://github.com/WordPress/wordpress-develop/blob/b4889e474c77ba4ed7a492441fd948eb124a3e77/src/js/_enqueues/admin/common.js#L1172

added 196 characters in body
Source Link

I ran into this same problem and did some digging.

  The jQuery selector used to queryfind the checkboxes looks for a class ofincludes an iedit class on the table <tr>'s elements. I assume this class is auto-generatedadded via JavaScript on rowstables that have inline editing, but I'm not using inline editing so my <tr> elements had no classes as I'm not using inline editing. 

I was able to solve the issue by adding this method to my table class.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}

And here's the source JavaScript with the issue: https://github.com/WordPress/wordpress-develop/blob/b4889e474c77ba4ed7a492441fd948eb124a3e77/src/js/_enqueues/admin/common.js#L1172

I ran into this same problem and did some digging.

  The jQuery selector used to query the checkboxes looks for a class of iedit on the table <tr>'s. I assume this is auto-generated on rows that have inline editing, but I'm not using inline editing so my <tr> elements had no classes. I was able to solve the issue by adding this method to my table class.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}

I ran into this same problem and did some digging. The jQuery selector to find the checkboxes includes an iedit class on the table <tr> elements. I assume this class is added via JavaScript on tables that have inline editing, but my <tr> elements had no classes as I'm not using inline editing. 

I was able to solve the issue by adding this method to my table class.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}

And here's the source JavaScript with the issue: https://github.com/WordPress/wordpress-develop/blob/b4889e474c77ba4ed7a492441fd948eb124a3e77/src/js/_enqueues/admin/common.js#L1172

Source Link

I ran into this same problem and did some digging.

The jQuery selector used to query the checkboxes looks for a class of iedit on the table <tr>'s. I assume this is auto-generated on rows that have inline editing, but I'm not using inline editing so my <tr> elements had no classes. I was able to solve the issue by adding this method to my table class.

public function single_row( $item ) {
    ob_start();
    parent::single_row( $item );
    $output = ob_get_clean();
    echo str_replace( '<tr>', '<tr class="iedit">', $output );
}