diff --git a/src/components/BuildingTable/core/select-manager.js b/src/components/BuildingTable/core/select-manager.js index 8cd9a5f..be92329 100644 --- a/src/components/BuildingTable/core/select-manager.js +++ b/src/components/BuildingTable/core/select-manager.js @@ -85,7 +85,9 @@ export default class SelectionManager { if (this.disabled) return this.query.queryHousesByUnit(unitInfo).forEach(house => { - this.setHouseCell(house, selected) + if (house.isEnabled) { + this.setHouseCell(house, selected) + } }) this.raiseEvent() } @@ -95,7 +97,9 @@ export default class SelectionManager { if (this.disabled) return this.query.queryHousesByLayer(layerInfo, unitInfo).forEach(house => { - this.setHouseCell(house, selected) + if (house.isEnabled) { + this.setHouseCell(house, selected) + } }) this.raiseEvent() } diff --git a/src/components/BuildingTable/style/common.scss b/src/components/BuildingTable/style/common.scss index 9e0d9da..be24b39 100644 --- a/src/components/BuildingTable/style/common.scss +++ b/src/components/BuildingTable/style/common.scss @@ -4,7 +4,7 @@ .bt-checkbox__input { margin-right: 2px; - &[disabled="disabled"] { + &[disabled] { cursor: not-allowed; } }