Zicrael / ngx-tree-dnd

Angular 7 support, data sortable draggable smart tree.
https://ngx-tree-dnd.stackblitz.io
MIT License
39 stars 11 forks source link

onDeleteItem(event) does not work #11

Closed ayyildiz55 closed 5 years ago

ayyildiz55 commented 5 years ago

Hi Yaroslav, My problem is ; When I clicked onDeleteItem(event) button it give me wrong items id for example ;

--> element: {id: 90, name: "iiiii", orderNo: 0, parentCategoryId: null, options: {…}, …} when I clicked on delete button in child items, it return id:90 when ı clicked id:93 it return id:90 . it gives me same result with whole clicks So how can ı fix this ?

thanks, Ayyildiz

Zicrael commented 5 years ago

Hello Ayyidiz, let me check it. Thank you for find issue! I write here after find solution.

ayyildiz55 commented 5 years ago

Ok.Thank you for your response.I'm trying too If I solve the problem I will write.

Zicrael commented 5 years ago

Good news my friend, I fix it. Thank you for find bug! For fix reinstall package i update it to 2.3.2!

npm install ngx-tree-dnd --save-dev
ayyildiz55 commented 5 years ago

Ohh You're save my time thank you so much

Zicrael commented 5 years ago

Can you please check it again? Is it work fine for you?

ayyildiz55 commented 5 years ago

It works as an expected.The bug fixed thanks 👍

Zicrael commented 5 years ago

Perfect! Thank you for using ngx-tree-dnd, hope you star it ;) I close issue now. Thank you again.