Mercurial > hg > cmmr2012-drupal-site
diff core/modules/toolbar/js/views/ToolbarVisualView.es6.js @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line diff
--- a/core/modules/toolbar/js/views/ToolbarVisualView.es6.js Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/toolbar/js/views/ToolbarVisualView.es6.js Thu May 09 15:34:47 2019 +0100 @@ -145,9 +145,9 @@ onTabClick(event) { // If this tab has a tray associated with it, it is considered an // activatable tab. - if (event.target.hasAttribute('data-toolbar-tray')) { + if (event.currentTarget.hasAttribute('data-toolbar-tray')) { const activeTab = this.model.get('activeTab'); - const clickedTab = event.target; + const clickedTab = event.currentTarget; // Set the event target as the active item if it is not already. this.model.set(