angular-ui/ui-grid

ng-if in cell template disables cellnav focus

Open

#5,643 opened on Aug 24, 2016

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (2,496 forks)batch import
help wanted

Repository metrics

Stars
 (5,395 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I am using cellNav with a custom cell template which works fine until I add an ng-if statement to the template at which point the cell stops receiving focus on click.

This is demonstrated in this plunkr: http://plnkr.co/edit/Wb8hBahoQcGaaSeCCT9n?p=preview where the first two columns have a the same cell template aside from an ng-if="true" clause in the latter.

Is there a known workaround for this?

P.S. Thanks for an awesome project!

Contributor guide