From 6053cefe223c5000c3b018a4aac92825bbd293a8 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 38d8fc901..2611eb12b 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 !important; max-width: ${width}px !important`;