diff --git a/src/plugins/discover/public/application/components/default_discover_table/default_discover_table.tsx b/src/plugins/discover/public/application/components/default_discover_table/default_discover_table.tsx index a66a9044873b..5bcc55666f7c 100644 --- a/src/plugins/discover/public/application/components/default_discover_table/default_discover_table.tsx +++ b/src/plugins/discover/public/application/components/default_discover_table/default_discover_table.tsx @@ -180,6 +180,10 @@ const DefaultDiscoverTableUI = ({ if (tableElement) { // Load the first batch of rows and adjust the columns to the contents tableElement.style.tableLayout = 'auto'; + // To prevent influencing the auto-sizing, unset the widths from a previous render + tableElement.querySelectorAll('thead > tr > th:not(:first-child)').forEach((th) => { + (th as HTMLTableCellElement).style.width = 'unset'; + }); tableLayoutRequestFrameRef.current = requestAnimationFrame(() => { if (tableElement) {