Skip to content

Commit

Permalink
Merge pull request #1101 from Esri/manager-click-list
Browse files Browse the repository at this point in the history
change selected check
  • Loading branch information
jmhauck authored Jan 15, 2025
2 parents 201ace6 + 7748bf5 commit d51d43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layer-table/layer-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,8 @@ export class LayerTable {
label={k}
onClick={(e) => {
const target = e.target as HTMLCalciteDropdownItemElement;
this._columnsInfo[target.label] = target.selected;
if (!target.selected) {
this._columnsInfo[target.label] = !target.selected;
if (target.selected) {
this._table.hideColumn(target.label);
} else {
this._table.showColumn(target.label);
Expand Down

0 comments on commit d51d43a

Please sign in to comment.