mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 08:22:44 +08:00
fix: replace with 0
This commit is contained in:
parent
b9bb77e027
commit
b74eb017af
@ -175,7 +175,7 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
|
|||||||
if (this.parent) {
|
if (this.parent) {
|
||||||
return this.parent.children.indexOf(this);
|
return this.parent.children.indexOf(this);
|
||||||
}
|
}
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
set index(_val: number) {
|
set index(_val: number) {
|
||||||
|
Loading…
Reference in New Issue
Block a user