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

    • Story Points:
      3
    • Sprint:
      2020 Sprint 12

      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:
              vijaysingh Vijay Singh
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Jan Vennemann
              Tester:
              Satyam Sekhri
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration