Skip to content

UI Grid Logs Warn messages when hiding a column (angular.js:12330 Trying to focus on an element that isn't an element) #5206

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

Closed
nkoterba opened this issue Mar 9, 2016 · 8 comments · Fixed by #6651
Assignees

Comments

@nkoterba
Copy link
Contributor

nkoterba commented Mar 9, 2016

Issue is more a "heads-up" than an actual bug as I believe functionality of the grid is unaffected.

However, if you open up the following Tutorial (http://ui-grid.info/docs/#/tutorial/102_sorting) and open up the browser console and hide any of the columns in any of the sample tables, you get the warning message below:
image

You can see 4 times ui-grid is trying to focus on a null or non-angular element.

I've seen this "warning" occur on all UI-grids in all the tutorials (as well as my app which is where I first found it and thought perhaps I was doing something "inappropriate").

@abisohexacta
Copy link

abisohexacta commented May 12, 2016

The same issue is happening to me.
Did you find a solution? If so, how you solve it?

@thadeuborges
Copy link

+1 any solution guys?

@thadeuborges
Copy link

Guys, this 'warning' still hapen on version ui-grid - v4.0.3...

@mportuga
Copy link
Member

This issue can sometimes be reproduced on a grid without data and appears to cause the column menu to not show up.

@dmihaela
Copy link

I'm using AngularJS 1.6.7 and ui-grid 4.1.3 and I'm having the same issue. Even more, with versions of angular > 1.6 I think it' s causing this error : "Possibly unhandled rejection: not-element". You can reproduce with this plunkr : http://plnkr.co/edit/BUybCa9ADfx4rH7gEDNH when you hide a column. Hope it' s gonna be fixed soon, it's not really nice to make workarounds to avoid this error.

@mportuga mportuga self-assigned this Jan 17, 2018
@chalder
Copy link

chalder commented Jan 17, 2018

I am using AngularJS 1.6.7 and ui-grid 4.2.0 , facing same issue.

Trying to focus on an element that isn't an element.
Unknown Exception
Possibly unhandled rejection: not-element

Is there any workaround for now ?

defields923 pushed a commit to defields923/ui-grid that referenced this issue Apr 2, 2018
defields923 pushed a commit to defields923/ui-grid that referenced this issue Apr 2, 2018
defields923 pushed a commit to defields923/ui-grid that referenced this issue Apr 2, 2018
defields923 pushed a commit to defields923/ui-grid that referenced this issue Apr 3, 2018
@georgiabarnes
Copy link

Is anyone still seeing this in v4.6.2?

@nedislavd
Copy link

@georgiabarnes Yes I'm still seeing it on v4.6.2 and AngularJS v1.7.2,

Was it meant to be fixed?

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

Successfully merging a pull request may close this issue.

9 participants