Skip to content

Fix pull request list keyboard navigation - #3535

Merged
iAmWillShepherd merged 1 commit into
masterfrom
keyboardin
Dec 7, 2017
Merged

iAmWillShepherd merged 1 commit into
masterfrom
keyboardin

Conversation

@joshaber

@joshaber joshaber commented Dec 7, 2017

Copy link
Copy Markdown
Contributor

Fixes #3499

We were checking falsiness which includes 0, but 0's totally a valid row. We hadn't run into this bug yet because in all of our other lists, the 0th row is always a non-selectable header of some type so it was skipped already.

That would include 0, which is totally a valid row 😱
@joshaber joshaber added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Dec 7, 2017
@iAmWillShepherd

Copy link
Copy Markdown
Contributor

Do you think it's worth explicitly checking against the value we want instead of relying on JS truthiness?

@iAmWillShepherd iAmWillShepherd self-assigned this Dec 7, 2017
@joshaber

joshaber commented Dec 7, 2017

Copy link
Copy Markdown
Contributor Author

That's what this is doing now, unless I'm misunderstanding you?

@iAmWillShepherd iAmWillShepherd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@iAmWillShepherd

Copy link
Copy Markdown
Contributor

I meant everywhere in the code, not just this specific instance where it burned us.

@iAmWillShepherd
iAmWillShepherd merged commit 1443373 into master Dec 7, 2017
@iAmWillShepherd
iAmWillShepherd deleted the keyboardin branch December 7, 2017 17:24
@joshaber

joshaber commented Dec 7, 2017

Copy link
Copy Markdown
Contributor Author

I think that's a great idea 👍 I'm pretty sure this has bit us before too. Maybe some linter setting we can switch on?

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

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants