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

Keyboard.js "Cannot set property 'tabIndex' of undefined" error #494

Closed
bright-sea opened this issue Mar 15, 2013 · 3 comments
Closed

Keyboard.js "Cannot set property 'tabIndex' of undefined" error #494

bright-sea opened this issue Mar 15, 2013 · 3 comments

Comments

@bright-sea
Copy link

Using list below code to create a grid :

       var grid = new declare([Grid, Keyboard, Selection, DijitRegistry, Pagination, ColumnResizer])({
            store: Observable(new Memory({
                data: []
            })),
            rowsPerPage: 100
        }, div);

It works all the time till recently updated to the latest dgrid.

Error happens at line 85 of keyboard.js:

            initialNode.tabIndex = grid.tabIndex;

It caused by initialNode undefined.

This should be related to this change by change history

@ghost
Copy link

ghost commented Mar 15, 2013

In the example you provided, I don't see columns or subRows specified. Does the problem go away if you specify one of them?

@bright-sea
Copy link
Author

Since my columns will changed dynamically, I need create grid first, then set columns or subRows later.

My code works all the way, only after the change I mentioned.

Thanks for your quick response.

@ghost
Copy link

ghost commented Mar 15, 2013

Leaving structure initially unset isn't something we've particularly tested, but this actually led me to discover another bug in Keyboard focus as well (which probably existed even prior to the refactor). I'll be pushing a fix for both issues shortly.

@ghost ghost closed this as completed in cbf15b2 Mar 15, 2013
This issue was closed.
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

1 participant