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

iOS: Drag-and-dropped text into TextArea will crash on iOS 15 if it exceeds maxLength

    Details

    • Story Points:
      5

      Description

      Steps to reproduce:

      1. Build and run the below on iOS 15.
      2. Tap and hold the top TextArea's text.
      3. Tap on "Select All" in the context menu.
      4. Tap and hold selected text until it becomes draggable.
      5. Drag text into bottom TextArea.
      6. Notice that the app crashes.

      const window = Ti.UI.createWindow({
      	layout: "vertical",
      	backgroundColor: "white",
      });
      window.add(Ti.UI.createTextArea({
      	value: "Hello World! This is a test.",
      	borderWidth: 1,
      	top: 100,
      	width: "80%",
      	height: 80,
      }));
      window.add(Ti.UI.createTextArea({
      	value: "Paste text here.",
      	maxLength: 20,
      	borderWidth: 1,
      	top: 20,
      	width: "80%",
      	height: 80,
      }));
      window.open();
      

      Original Post:
      Our users have started to report that pasting text into a Ti.UI.TextArea, will crash the app. The crash has started to happen recently and only on iOS 15. Below is attached a crash report from Crashlytics.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jonasfunk Jonas Funk Johannessen
              Reviewer:
              Gary Mathews
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration