The text field could support text wrapping

The text field supports word wrap natively, but when I want to dynamically assign text through some event the field doesn’t allow it.
I want to write a line break text with an Enter inside: