@kizmann/nano-ui 0.8.14 → 0.8.15
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -276,7 +276,9 @@ export default {
|
|
276
276
|
props.onMousemove = Any.framerate(this.onHover(tempCascade), 30);
|
277
277
|
}
|
278
278
|
|
279
|
-
|
279
|
+
if ( ! disabled ) {
|
280
|
+
props['on' + Str.ucfirst(this.mousedown)] = this.onSelect(tempCascade);
|
281
|
+
}
|
280
282
|
|
281
283
|
let children = Obj.get(item, this.childProp);
|
282
284
|
|
@@ -518,7 +518,17 @@ export default {
|
|
518
518
|
|
519
519
|
Arr.recursive(this.items, this.childProp, (node, cascade) => {
|
520
520
|
|
521
|
-
|
521
|
+
let val = node;
|
522
|
+
|
523
|
+
if ( !Any.isEmpty(key) ) {
|
524
|
+
val = Obj.get(val, key);
|
525
|
+
}
|
526
|
+
|
527
|
+
if ( ! Any.isFunction(value) ) {
|
528
|
+
value = (val) => val === value;
|
529
|
+
}
|
530
|
+
|
531
|
+
if ( ! value(val) ) {
|
522
532
|
return;
|
523
533
|
}
|
524
534
|
|