Skip to content

Commit

Permalink
Update print-interaction-toggle.js (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd authored Sep 4, 2023
1 parent cc92128 commit 099071e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/print/print-interaction-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function PrintInteractionToggle(options = {}) {
icon: toggleIcon,
tooltipText: 'Ändra kartans läge',
tooltipPlacement: 'east',
state: 'initial',
state: 'active',
validStates: ['initial', 'active'],
style: 'width: fit-content;',
click() {
Expand All @@ -64,7 +64,7 @@ export default function PrintInteractionToggle(options = {}) {
this.dispatch('render');
},
render() {
if (!mapInteractionsActive) {
if (mapInteractionsActive !== true) {
onInitial();
mapInteractionToggleButton.setState('initial');
}
Expand Down

0 comments on commit 099071e

Please sign in to comment.