After upgrade to D10, empty tablefield output is displaying in paragraph on node

Created on 3 September 2023, about 1 year ago

I recently upgraded from Drupal 8 to D9, and then to D10. Now, when I view a node with paragraphs containing tablefields, the tablefield output is displaying even if it is empty.

Here is the relevant output code from the D10 version of my site (it was the same on the D9 version as well):

<div class="field field--name-field-table-field field--type-tablefield field--label-hidden field--items">
              <div class="field--item"><div id="tablefield-wrapper-paragraph-9999-field_table_field-0" class="tablefield-wrapper">  <div class="table-responsive">
<table id="tablefield-paragraph-9999-field_table_field-0" class="tablefield table table-hover table-striped" data-striping="1">
  
  
  
<div class="field field--name-field-table-field field--type-tablefield field--label-hidden field--items">
              <div class="field--item"><div id="tablefield-wrapper-paragraph-9999-field_table_field-0" class="tablefield-wrapper">  <div class="table-responsive">
<table id="tablefield-paragraph-9999-field_table_field-0" class="tablefield table table-hover table-striped" data-striping="1">
      <tbody>
                      <tr class="odd">
                      <td class="row_0 col_0"></td>
                      <td class="row_0 col_1"></td>
                      <td class="row_0 col_2"></td>
                      <td class="row_0 col_3"></td>
                      <td class="row_0 col_4"></td>
                  </tr>
                      <tr class="even">
                      <td class="row_1 col_0"></td>
                      <td class="row_1 col_1"></td>
                      <td class="row_1 col_2"></td>
                      <td class="row_1 col_3"></td>
                      <td class="row_1 col_4"></td>
                  </tr>
                      <tr class="odd">
                      <td class="row_2 col_0"></td>
                      <td class="row_2 col_1"></td>
                      <td class="row_2 col_2"></td>
                      <td class="row_2 col_3"></td>
                      <td class="row_2 col_4"></td>
                  </tr>
                      <tr class="even">
                      <td class="row_3 col_0"></td>
                      <td class="row_3 col_1"></td>
                      <td class="row_3 col_2"></td>
                      <td class="row_3 col_3"></td>
                      <td class="row_3 col_4"></td>
                  </tr>
                      <tr class="odd">
                      <td class="row_4 col_0"></td>
                      <td class="row_4 col_1"></td>
                      <td class="row_4 col_2"></td>
                      <td class="row_4 col_3"></td>
                      <td class="row_4 col_4"></td>
                  </tr>
          </tbody>
    </table>
  </div>
</div></div>
              <div class="field--item"><div id="tablefield-wrapper-paragraph-9999-field_table_field-1" class="tablefield-wrapper">  <div class="table-responsive">
<table id="tablefield-paragraph-9999-field_table_field-1" class="tablefield table table-hover table-striped" data-striping="1">
  
  
  
      <tbody>
                      <tr class="odd">
                      <td class="row_0 col_0"></td>
                      <td class="row_0 col_1"></td>
                      <td class="row_0 col_2"></td>
                      <td class="row_0 col_3"></td>
                      <td class="row_0 col_4"></td>
                  </tr>
                      <tr class="even">
                      <td class="row_1 col_0"></td>
                      <td class="row_1 col_1"></td>
                      <td class="row_1 col_2"></td>
                      <td class="row_1 col_3"></td>
                      <td class="row_1 col_4"></td>
                  </tr>
                      <tr class="odd">
                      <td class="row_2 col_0"></td>
                      <td class="row_2 col_1"></td>
                      <td class="row_2 col_2"></td>
                      <td class="row_2 col_3"></td>
                      <td class="row_2 col_4"></td>
                  </tr>
                      <tr class="even">
                      <td class="row_3 col_0"></td>
                      <td class="row_3 col_1"></td>
                      <td class="row_3 col_2"></td>
                      <td class="row_3 col_3"></td>
                      <td class="row_3 col_4"></td>
                  </tr>
                      <tr class="odd">
                      <td class="row_4 col_0"></td>
                      <td class="row_4 col_1"></td>
                      <td class="row_4 col_2"></td>
                      <td class="row_4 col_3"></td>
                      <td class="row_4 col_4"></td>
                  </tr>
          </tbody>
    </table>
  </div>
</div></div>
          </div>

Why is this tablefield suddenly displaying in the page output? These divs don't exist at all in the D8 version of my site, unless of course you add content into the tablefield field. On the D8 site, the "rules for evaluating whether tablefield item should be considered empty" are both unchecked. I have tried leaving those unchecked and checking them in the D10 version, but no change occurs; the tablefields are simply always present, which is undesirable.

๐Ÿ’ฌ Support request
Status

Active

Version

2.4

Component

Miscellaneous

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States hockey2112

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024