From 2ba71ab41b3a31ed0b04eff4fe66d010770abbf2 Mon Sep 17 00:00:00 2001 From: FlipWarthog Date: Tue, 7 Nov 2023 20:38:59 -0500 Subject: [PATCH] Fix #4394 - DataTable VirtualScroller: resizableColumns broken --- components/lib/datatable/DataTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index c6d000f3d06..c2907c3535d 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -1303,7 +1303,7 @@ export default { this.createStyleElement(); let innerHTML = ''; - let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-section="virtualscroller"]'} > table[data-pc-section="table"]`; + let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]'} > table[data-pc-section="table"]`; widths.forEach((width, index) => { let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width; @@ -1760,7 +1760,7 @@ export default { this.createStyleElement(); let innerHTML = ''; - let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-section="virtualscroller"]'} > table[data-pc-section="table"]`; + let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]'} > table[data-pc-section="table"]`; widths.forEach((width, index) => { let style = `width: ${width}px; max-width: ${width}px`;