Chalarangelo / verticaltabtree

An add-on for Mozilla Firefox that displays tabs in a vertical tree with grouping options.
GNU General Public License v3.0
1 stars 0 forks source link

Active tab selection not updating properly when the add-on opens with only one tab #5

Open Chalarangelo opened 8 years ago

Chalarangelo commented 8 years ago

When the add-on's sidebar opens with only one tab in the browser, the tab will properly mark as active. However when another tab is opened or activated the original tab will not get the .active class removed from it unless it is selected again. Therefore there is some problem either with the way the original tab is activated (using the vtt clear, vtt init, vtt activate loop-cycle), the tab's deactivation or the new tab's activation.

The same problem does not occur when two or more tabs are open in the browser before the sidebar is opened.

P.S.:First appeared on 582531e, which is when the code for tab activation/deactivation events first appeared.

Chalarangelo commented 8 years ago

Note: Might be MDN-related. If so, add workaround code in vtt activate that will deactivate all preivous active tab listings.