You may try out method attribute() in order to add maxlength:
- p5js.org/reference/#/p5.Element/attribute
- Developer.Mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefmaxlength
input = createInput().attribute('maxlength', maxChars);
You may try out method attribute() in order to add maxlength:
input = createInput().attribute('maxlength', maxChars);