angu-fixed-header-table icon indicating copy to clipboard operation
angu-fixed-header-table copied to clipboard

Firstchild always null

Open kensplanet opened this issue 8 years ago • 2 comments

There is a piece of code in angu-fixed-header-table.js

       $scope.$watch(tableDataLoaded, function(isTableDataLoaded) {
            if (isTableDataLoaded) {
                transformTable();
            }
        });

        function tableDataLoaded() {
            // first cell in the tbody exists when data is loaded but doesn't have a width
            // until after the table is transformed
            var firstCell = elem.querySelector('tbody tr:first-child td:first-child');
            return firstCell && !firstCell.style.width;
        }

The problem is my firstChild is always null, and doesn't have a value. So, my table is never transformed and the directive doesn't work for me.

kensplanet avatar Mar 07 '16 17:03 kensplanet

I have the same issue... Were you able to fix it?

marsuaga44 avatar Jun 09 '16 16:06 marsuaga44

No. I had to use a different approach,

kensplanet avatar Jun 11 '16 02:06 kensplanet