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

Don’t jump to top of the page when switching views #125

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

pluehne
Copy link
Contributor

@pluehne pluehne commented Feb 26, 2018

Clicks on the view switcher buttons are supposed to be handled by JavaScript in order to switch the active view, bypassing the browser. However, without telling the browser that the click events have been reacted to, it will load the URL as usual. As the view switcher buttons have a # placeholder link, this would cause the browser to jump to to the top of the page.

This is fixed by returning false in the click event handling functions.

Clicks on the view switcher buttons are supposed to be handled by
JavaScript in order to switch the active view, bypassing the browser.
However, without telling the browser that the click events have been
reacted to, it will load the URL as usual. As the view switcher buttons
have a “#” placeholder link, this would cause the browser to jump to
to the top of the page.

This is fixed by returning false in the click event handling functions.
@pluehne pluehne added the bug label Feb 26, 2018
@pluehne pluehne self-assigned this Feb 26, 2018
@pluehne pluehne added this to To Do in Hubble Enterprise 0.3.0 via automation Feb 26, 2018
@codecov-io
Copy link

Codecov Report

Merging #125 into master will decrease coverage by 0.1%.
The diff coverage is 0%.

@larsxschneider larsxschneider merged commit f19d453 into master Feb 26, 2018
Hubble Enterprise 0.3.0 automation moved this from To Do to Done Feb 26, 2018
@larsxschneider larsxschneider deleted the patrick/fix-click-event branch February 26, 2018 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants