Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18256

iOS: Setting TextField.value to wrong type triggers change event

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: TiAPI
    • Environment:

      3.4.1.GA

      Description

      Only on iOS, setting a TextField's (and probably others) value to the wrong type triggers the change event.

      The following code logs is changed once on iOS if you replace "hello" with 123, but doesn't log anything on Android.

      I expect the behaviour to be as on Android.

      var w = Ti.UI.createWindow();
      var t = Ti.UI.createTextField();
      t.addEventListener('change', function(e) { console.debug('is changed'); });
      w.add(t);
      w.open();
      t.value = 'hello';
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19501
                  Sync status:
                  PENDING
                  Last received:
                  Last sent:

                  Git Source Code