Skip to content

Commit

Permalink
collapse the layers control on selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Feb 16, 2021
1 parent 878f6da commit acf7dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/RLayers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class RLayers extends RControlBase<LayersProps, LayersState> {
visible[v] = false;
}
visible[i] = true;
this.setState({visible: [...visible]});
this.setState({visible: [...visible], collapsed: true});
}}
/>
<label htmlFor={i.toString()}>{l}</label>
Expand Down

0 comments on commit acf7dad

Please sign in to comment.