Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firstchild always null #25

Open
kensplanet opened this issue Mar 7, 2016 · 2 comments
Open

Firstchild always null #25

kensplanet opened this issue Mar 7, 2016 · 2 comments

Comments

@kensplanet
Copy link

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.

@marsuaga44
Copy link

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

@kensplanet
Copy link
Author

No. I had to use a different approach,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants