Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
p-a-s-c-a-l committed Jan 23, 2020
1 parent 74acb7a commit f1fb2ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/RL-Grouped-Layer-Control-RC.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var RLGroupedLayerControlRC = function (_React$Component) {
newOverlays = overlays.map(function (overlay, index) {
if (overlay.groupTitle + '-' + _this3.id === '' + event.target.name) {
return {
checked: overlay.checked & overlay.name === id,
checked: !overlay.checked & overlay.name === id,
groupTitle: overlay.groupTitle,
name: overlay.name,
title: overlay.title
Expand Down
2 changes: 1 addition & 1 deletion src/RL-Grouped-Layer-Control-RC.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class RLGroupedLayerControlRC extends React.Component {
newOverlays = overlays.map((overlay, index) => {
if ((`${overlay.groupTitle}-${this.id}`) === `${event.target.name}`) {
return {
checked: overlay.checked & (overlay.name === id),
checked: !overlay.checked & (overlay.name === id),
groupTitle: overlay.groupTitle,
name: overlay.name,
title: overlay.title
Expand Down

0 comments on commit f1fb2ce

Please sign in to comment.