Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

1

Found in

2022.3.62f1

6000.0.50f1

6000.1.4f1

6000.2.0b3

Issue ID

UUM-107498

Regression

No

The Input Field view is not updated when deleting lines of text

-

How to reproduce:
1. Create and open a project
2. Install the TextMeshPro package (Window > Package Manager)
3. Install (Window > TextMeshPro > Install Examples & Extras)
4. Open the “Assets/TextMesh Pro/Examples & Extras/Scenes/20 - Input Field with Scrollbar“ Scene
5. Enter Play Mode
6. Delete all text in the top Input Field
7. Press the Enter key a bunch of times (>15, just to be sure)
8. Delete 3 of them
9. Observe the caret position

Expected result: The caret stays at the bottom of the Input Field (the view goes up by one line), indicating that there is no text below the caret
Actual result: The caret is at the middle of the Input Field, indicating the view is not updated to the caret position (when there is no text below)

Reproducible in: 2022.1.0a1, 2022.3.62f1, 6000.0.50f1, 6000.1.4f1, 6000.2.0b3

Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested

Notes:
- If the text is vertically over the size of the Input Field, the view should be updated so that the caret is at the bottom of the Input Field view
- This is kind of similar to a case that was fixed a while ago: [https://issuetracker.unity3d.com/issues/when-erasing-the-text-of-an-inputfield-by-hitting-backspace-the-text-doesnt-scroll-back|https://issuetracker.unity3d.com/issues/when-erasing-the-text-of-an-inputfield-by-hitting-backspace-the-text-doesnt-scroll-back]
- The view is not updated until the caret goes outside the Input Field view

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.