Commit 761632e2 authored by webchick's avatar webchick

Issue #2181525 by Dragan Eror, maggo, nod_ | dexterns88: Toolbar toogle button bug with click.

parent 6b0756e2
......@@ -77,10 +77,11 @@
// If this tab has a tray associated with it, it is considered an
// activatable tab.
if (event.target.hasAttribute('data-toolbar-tray')) {
var tab = this.model.get('activeTab');
var id = '#' + event.target.id;
var activeTab = this.model.get('activeTab');
var clickedTab = event.target;
// Set the event target as the active item if it is not already.
this.model.set('activeTab', (!tab || id !== tab) ? id : null);
this.model.set('activeTab', (!activeTab || clickedTab !== activeTab) ? clickedTab : null);
event.preventDefault();
event.stopPropagation();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment