Premium support for our pure JavaScript UI components


Post by gbrdhvndi »

Hello, we seem to have found a little defect in the Group feature of the Grid.

If no custom groupRenderer was defined on the column or in the Group feature's own config, the code falls back to a built-in routine which simply displays the grouped value along with the record count.

// Third, just display unformatted value and child count (also applied for features groupRenderer that do
// not output any html of their own)
if (isGroupHeaderColumn && html == null && applyDefault && cellElement.childElementCount === 0) {
    html = StringHelper.encodeHtml(`${meta.groupRowFor === '__novalue__' ? '' : meta.groupRowFor} (${count})`);
}

However, the childElementCount property is not yet supported by the Locker Service.
https://developer.salesforce.com/docs/component-library/tools/locker-service-viewer

This causes the if-check to fail and results in an empty group header.

One possible workaround would be to check cellElement.childNodes.length instead.

Thank you!

Aleksei


Post by Maxim Gorkovsky »

Hello.
Thank you for report, I opened a ticket here: https://github.com/bryntum/support/issues/3008


Post Reply