Unity Issue Tracker - New line is accepted in TextMeshPro “Multi Line Newline” Input Field when a line exceeds a set Line Limit
Fixed
UUM-42585
New line is accepted in TextMeshPro “Multi Line Newline” Input Field when a line exceeds a set Line Limit
Unity: uGUI
Fixed
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2021.3.X
Fixed in: 2023.3.0a7
Fixed in: 2023.2.0b12
Fixed in 3.2.0-pre.6: Fixed Multi Line Newline input field from not accepting any new line past the set line limit
Fixed in 3.2.0-pre.6: Fixed Multi Line Newline input field from not accepting any new line past the set line limit
Fixed in 3.2.0-pre.6: Fixed Multi Line Newline input field from not accepting any new line past the set line limit
How to reproduce:
1. Open the user’s attached “TMP-InputFieldLineLimits.zip” project
2. Enter Play Mode
3. Focus on the Input Field and press the “Enter” key on the keyboard 6 times
Expected result: Caret is in the 5th line
Actual result: Caret is in the 6th line
Notes:
-text can’t be placed in the 6th line
-if the Line Limit is 1, then the caret can be placed in the 2nd line
-reproducible in the Editor and Standalone Player (macOS)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?