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

Fix console error when scrolling a column with no scrollable content #1574

Merged
merged 1 commit into from
Apr 11, 2017
Merged

Fix console error when scrolling a column with no scrollable content #1574

merged 1 commit into from
Apr 11, 2017

Conversation

henrycatalinismith
Copy link
Contributor

Kind of trying to get my feet wet here, with a fairly low-impact initial PR. Apologies if something this trivial is an unwanted kind of contribution at such a busy time!

The issue addressed by this PR is reproduced by clicking the header of a column that contains no content. For example: when you have no notifications. The lack of a scrollable inside the column causes a TypeError: Cannot read property 'scrollTop' of null error.

bug

I've tested this change manually on a column both with and without content. In the long term, would you be at all interested in having unit tests for your front-end code? It's a gorgeous bit of React code and I could see myself having a lot of fun backfilling it with test coverage on some rainy evenings ❤️

@Gargron Gargron merged commit 1921c54 into mastodon:master Apr 11, 2017
@henrycatalinismith henrycatalinismith deleted the scroll-error branch April 11, 2017 19:58
@Gargron
Copy link
Member

Gargron commented Apr 11, 2017

I would welcome any and all automated tests. But I must warn you that it's probably really complicated because of react-intl, redux and Immutable.js, like, there's a lot of boilerplate for setting up tests.

Gargron pushed a commit that referenced this pull request Apr 12, 2017
thurloat pushed a commit to Moosetodon/mastodon that referenced this pull request Apr 13, 2017
Nyoho pushed a commit to Nyoho/mathtodon that referenced this pull request Apr 25, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants