N00ts / vue3-treeview

a simple treeview in vue js 3
MIT License
71 stars 61 forks source link

edit finished event #38

Open Lisiadito opened 1 year ago

Lisiadito commented 1 year ago

I have the issue that I want to update the backend after I edited a node. The event node-edit is only fired after the double click into the field. Plus the event doesn't specify which node is edited. Is there a way to do this or is it possible to implement an event when the edit mode is exited?

N00ts commented 1 year ago

Hello, the "node-edit" event is also called when you press enter and the node is selected. I think what you are actually looking for is "node-blur" event, which is fired on input blur. Also for both events, the node is passed as argument, so you know which node is concerned.

Lisiadito commented 1 year ago

Thanks for the answer. Will check that =)