[TIMOB-27988] TiAPI: "change" event should not be fired when changed programmatically
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android, iOS |
| Labels | SearchBar, android, breaking-change, change, event, iOS, picker, slider, switch |
| Reporter | Joshua Quick |
| Assignee | Joshua Quick |
| Created | 2020-06-25T22:51:39.000+0000 |
| Updated | 2021-02-22T18:55:03.000+0000 |
Description
*Summary:*
The below UI widgets will fire a "change" event when you change their "value" property programmatically. We should change this behavior to only fire this event when the value has been changed the end-user via UI interaction.
*
Ti.UI.Slider
* Ti.UI.Switch
* Ti.UI.Picker
* Ti.UI.SearchBar
This is a breaking-change,
*Reason:*
To make it work more like web widgets.
*Note:*
The following Titanium widgets already work this way:
* Ti.UI.TextArea
* Ti.UI.TextField
No comments