TextField and TextArea needs a property to control the max length of the input text.
Though this can be done using an eventlistener and a length check. It would be very useful if this was built-in.
1. Run code
2. Check log, make sure maxLength is -1
3. Click on button
4. Start typing, the content should not exceed 10 characters.
5. Re-run code, this time enter 20+ characters before click on button
6. Click on button, text now should truncate to 10 characters
7. Repeat 1-6 on textArea.