Skip to content

Commit

Permalink
Merge pull request #17 from pierre-alain-b/pierre-alain-b-patch-1
Browse files Browse the repository at this point in the history
Update control.js so that the button is of type=button
  • Loading branch information
keul committed Apr 25, 2023
2 parents 3d2a536 + e0c379c commit af87e55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const DrawAreaSelection = Control.extend({
// this.activateButton.style.backgroundImage = `url('${buttonImage}')`;
this.activateButton.setAttribute('aria-label', 'Draw shape');
this.activateButton.setAttribute('aria-describedby', 'draw-panel-help');
this.activateButton.setAttribute('type', 'button');
this.activateButton.addEventListener('click', onActivate.bind(this));
this.activateButton.addEventListener('dblclick', (event) => {
event.stopPropagation();
Expand Down

0 comments on commit af87e55

Please sign in to comment.