Search Issue Tracker

Fixed in 1.0.0-preview.16

Votes

0

Found in [Package]

1.0.0-preview.11

Issue ID

1296391

Regression

Yes

[UI Toolkit] Selecting and removing a chunk of text in TextField produces IndexOutOfRangeException

Package: UI Toolkit

-

How to reproduce:
1. Open the user's attached project("bug_report_text_field_erase_error.zip")
2. In the toolbar select "BugReport" > "TextField"
3. Copy in some random text that would fill more than 2 lines of the Text Area
4. Select 2 lines of the text or more
5. Delete those lines

Expected results: The selected text gets deleted successfully
Actual results: "IndexOutOfRangeException: Index was outside the bounds of the array" is thrown a few times

Reproducible with: UI Toolkit 1.0.0-preview.11 - 1.0.0-preview.13(2020.1.17f1, 2020.2.0f1, 2021.1.0a9)
Not reproducible with: UI Toolkit 1.0.0-preview.3 - 1.0.0-preview.9(2020.1.17f1, 2020.2.0f1, 2021.1.0a9)
Could not test with: 2018.4.30f1, 2019.4.16f1(UI Toolkit not available)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.