@kigi/components 1.28.4-alpha → 1.28.5-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.28.4-alpha",
3
+ "version": "1.28.5-alpha",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -105,17 +105,15 @@ class MbgProductGridController {
105
105
  })
106
106
  }
107
107
 
108
- toogleEnableItem(xIndex, yIndex) {
108
+ async toogleEnableItem(xIndex, yIndex) {
109
109
  this.gridValues[xIndex] = this.gridValues[xIndex] || {}
110
110
  this.gridValues[xIndex][yIndex] = this.gridValues[xIndex][yIndex] || {}
111
111
 
112
- if (
112
+ const validationAddOrRemoveGridOrDetails =
113
113
  this.addOrRemoveValidation &&
114
- !this.addOrRemoveValidation({ details: this.gridValues[xIndex][yIndex] })
115
- ) {
116
- return
117
- }
114
+ (await this.addOrRemoveValidation({ details: this.gridValues[xIndex][yIndex] }))
118
115
 
116
+ if (!validationAddOrRemoveGridOrDetails) return
119
117
  this.gridValues[xIndex][yIndex].enable = !this.gridValues[xIndex][yIndex].enable
120
118
  this.handleGridValues()
121
119
  }