[TIMOB-10145] Android: textField - clearOnEdit does not seem to function
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-01-26T18:22:41.000+0000 |
Affected Version/s | Release 2.0.1, Release 2.1.1, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, parity, qe-and070112 |
Reporter | Eric Merriman |
Assignee | Eric Merriman |
Created | 2012-07-25T16:04:54.000+0000 |
Updated | 2017-01-26T18:22:41.000+0000 |
Description
Description:
While testing KitchenSink in the textfield area, We attempted to use "the rest" test and the test for "clearOnEdit" did not clear text from the field when the property was set.
This is not a regression, this occurs with 2..0.1GA2 as well.
Steps to reproduce:
1) Launch KitchenSink, navigate to Controls > TextField > the rest
2) enter text into the text field
3) manipulate the "clear on edit" button until the desired result is achieved
(3 presses, first logs in console "undefined", second, "true", third "false" which is actually true)
4) Attempt to edit text again
Result:
the existing text remains
Expected:
The existing text is removed on field entry
the problem can reproduce with release 3.0.2 and master 3.1.0 tested on:Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4
Already working. Text gets cleared on entering the textfield: * SDK: 6.0.1.GA * Android 6.0.1 * HTC A9 *Test code:*
Related code: https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUIText.java#L404
Thanks [~michael]
Using the test case provided by [~michael] I can verify that text does get cleared when clicking into a textfield. *Steps taken to verify:* 1. Clicked into a textfield which already had existing text 2. Textfield is cleared 3. Entered text in to the textfield 4. Clicked away from the textfield 5. Clicked back into the textfield 6. Textfield is cleared *Environement*