neo.mjs 4.3.3 → 4.3.5
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.
@@ -249,7 +249,7 @@ class MainContainer extends ConfigurationViewport {
|
|
249
249
|
* @param {Object} opts
|
250
250
|
*/
|
251
251
|
onFirstTabHeaderConfigChange(config, opts) {
|
252
|
-
this.
|
252
|
+
this.getFirstTabHeader()[config] = opts.value;
|
253
253
|
}
|
254
254
|
|
255
255
|
/**
|
package/package.json
CHANGED
package/src/button/Base.mjs
CHANGED
@@ -199,13 +199,9 @@ class Base extends Component {
|
|
199
199
|
iconNode = me.getIconNode();
|
200
200
|
|
201
201
|
NeoArray.remove(iconNode.cls, oldValue);
|
202
|
+
NeoArray.add( iconNode.cls, value);
|
202
203
|
|
203
|
-
|
204
|
-
iconNode.removeDom = true;
|
205
|
-
} else {
|
206
|
-
iconNode.removeDom = false;
|
207
|
-
NeoArray.add(iconNode.cls, value);
|
208
|
-
}
|
204
|
+
iconNode.removeDom = !value || value === '';
|
209
205
|
|
210
206
|
me.vdom = vdom;
|
211
207
|
}
|
@@ -403,6 +399,7 @@ class Base extends Component {
|
|
403
399
|
beforeSetIconCls(value, oldValue) {
|
404
400
|
if (value && !Array.isArray(value)) {
|
405
401
|
value = value.split(' ');
|
402
|
+
value = value.filter(Boolean);
|
406
403
|
}
|
407
404
|
|
408
405
|
return value;
|