I have a Spark Dropdownlist which has an item renderer of label and delete button
If the user deletes an item, the item should be removed from the list.
Now my problem is when the user delets an item , the item gets selected first, change event is fired, my app makes server calls and get data unnecessarily and finally it gets deleted.
How to prevent this behaviour?
Or simply , how to catch the event when the item is clicked before selection is made ?
Try calling stopImmediatePropagation on mouse events coming from the delete button.
That is awesome.
Removed lot of code with this very powerful line.
Thanks a lot .