Is there a way to restrict the number of characters in an input field based on its width?
I have a dynamic input field with varying widths and I would like users to be able to type without their text extending outside of the input boundary.
Using maxLength won't work for me because different fonts, languages, and characters have different widths.