comparison core/modules/toolbar/js/views/ToolbarVisualView.js @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
60 } 60 }
61 61
62 return this; 62 return this;
63 }, 63 },
64 onTabClick: function onTabClick(event) { 64 onTabClick: function onTabClick(event) {
65 if (event.target.hasAttribute('data-toolbar-tray')) { 65 if (event.currentTarget.hasAttribute('data-toolbar-tray')) {
66 var activeTab = this.model.get('activeTab'); 66 var activeTab = this.model.get('activeTab');
67 var clickedTab = event.target; 67 var clickedTab = event.currentTarget;
68 68
69 this.model.set('activeTab', !activeTab || clickedTab !== activeTab ? clickedTab : null); 69 this.model.set('activeTab', !activeTab || clickedTab !== activeTab ? clickedTab : null);
70 70
71 event.preventDefault(); 71 event.preventDefault();
72 event.stopPropagation(); 72 event.stopPropagation();