Skip to content

Commit

Permalink
Remove "role" attribute when scroll zoom blocker is hidden (#13051) (…
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmakielkowski authored Jan 22, 2024
1 parent d882740 commit 3f06cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/handler/scroll_zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class ScrollZoomHandler {

this._alertTimer = setTimeout(() => {
this._alertContainer.classList.remove('mapboxgl-scroll-zoom-blocker-show');
this._alertContainer.setAttribute("role", "null");
this._alertContainer.removeAttribute("role");
}, 200);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ui/handler/touch_pan.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default class TouchPanHandler {

this._alertTimer = setTimeout(() => {
this._alertContainer.classList.remove('mapboxgl-touch-pan-blocker-show');
this._alertContainer.setAttribute("role", "null");
this._alertContainer.removeAttribute("role");
}, 500);
}

Expand Down

0 comments on commit 3f06cf6

Please sign in to comment.