Commit 963f5961 authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

Removed unused click event

The BucketBar component has a CSS property that disables click events
(`pointer-events: none`). Hence, it is pointless to register a click
event listener to the BucketBar.

`pointer-events: none` was added to the BucketBar more than 6 years ago.
parent ee2eca81
...@@ -132,12 +132,6 @@ export default class Sidebar extends Guest { ...@@ -132,12 +132,6 @@ export default class Sidebar extends Guest {
this.subscribe('panelReady', () => this.show()); this.subscribe('panelReady', () => this.show());
} }
if (this.plugins.BucketBar) {
this._registerEvent(this.plugins.BucketBar.element, 'click', () =>
this.show()
);
}
// Set up the toolbar on the left edge of the sidebar. // Set up the toolbar on the left edge of the sidebar.
const toolbarContainer = document.createElement('div'); const toolbarContainer = document.createElement('div');
this.toolbar = new ToolbarController(toolbarContainer, { this.toolbar = new ToolbarController(toolbarContainer, {
......
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