Hi Vin,
Greetings from Syncfusion support.
We have checked the reported issue. When we toggle the component, its instance was not created at that time. Due to this time delay, the index property was not set to the component properly. So, we suggest you to assign the index value in the ngAfterViewChecked life cycle hook which is invoked each time the view of the given component has been checked by the change detection mechanism.
Kindly refer the below code example.
|
toggle() {
this.isShown = !this.isShown;
}
ngAfterViewChecked() {
if (this.isShown) {
this.DropObj.index = 0;
}
} |
Regards,
Berly B.C