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

Tile: "Cannot read property 'checked' of null" error when pressing space key. #708

Closed
jaygazula27 opened this issue Apr 18, 2018 · 0 comments
Assignees

Comments

@jaygazula27
Copy link

Detailed description

Describe in detail the issue you're having. Is this a feature request (new component, new icon), a bug, or a general issue?

Is this issue related to a specific component?

Yes, the Tile component.

What did you expect to happen? What happened instead? What would you like to see changed?

Currently, an error is thrown in the console when the space key is pressed. No error should be thrown.

What browser are you working in?

Issue is reproducible in FF and Chrome.

What version of the Carbon Design System are you using?

8.18.2

Steps to reproduce the issue

  1. Open this codepen: https://codepen.io/anon/pen/LmYrPQ
  2. Using your keyboard, tab over to the tile so that it gets focus.
  3. Press the space key.
  4. Observe that a console error is thrown.

Additional information

The error originates from tile.js.
Looks like it is looking for an element with the attribute [data-tile-input] within the tile, and tries to check it. But it does not ensure that it actually found an element with this attribute, and thus it throws an error.

I had originally asked about this issue on the #carbon-components slack channel, and I was informed that it was being worked on here: https://github.com/asudoh/carbon-components/tree/tile-check.

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

3 participants