Search Issue Tracker
Active
Under Consideration for 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
(TMP) 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
- The view is not updated until the caret goes outside the Input Field view
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Add comment