[TIMOB-13649] DashboardView fires delete events for all items even when not in edit mode
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2013-04-23T00:20:20.000+0000 |
Updated | 2018-02-28T20:04:06.000+0000 |
Description
According to the [documentation](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.DashboardView-event-delete), the delete event for DashboardView is
{quote}
Fired when an item is deleted in edit mode.
{quote}
However, a delete event will be fired for every item in a dashboardview even when not in edit mode. If you, for example, called
setData()
programmatically to reset the DashboardView, an individual delete event is fired for all items that are going to be replaced, which probably doesn't make sense in the context of a wholesale replace. It is also pretty noisy. In addition, setData()
is used by Alloy data binding to reset the dashboard when the model is updated.
I can confirm this bug is still present. Clicking a dashboard item when not in edit mode fires the delete event. It seems also to be fired when existing edit mode (not sure if it fires before or after the commit event).