maxLength() to show error instead of cutting off text

Right now, with maxLength(512) on a TextInput, if I paste text that is more than 512 characters, it chops the text to 512 and shows no error to the user. This has caused some of my users to post content that is being cut off without realizing. Is there a way to show an error to the user?
Was this page helpful?