thelastWallE / OctoprintKlipperPlugin

A plugin for a better integration of Klipper into OctoPrint.
GNU Affero General Public License v3.0
65 stars 14 forks source link

Fix switching to the plugin tab with a navbar click broken #24

Closed Master92 closed 3 years ago

Master92 commented 3 years ago

Closes #23

When there are more tabs to be shown than there is space for them, OctoPrint shows a dropdown icon hiding the excess items. Whenever this is the case, a click on this plugins navbar item does not switch to the OctoKlipper tab but just scrolls the page to the vertical location of the link item.

This behavior is fixed with this PR by using JavaScript for handling the click event.