I have an array of objects which look like
 {
    value: "text",
    length: 50,
    image_url: textPassword,
    type: "text"
  },
  {
    value: "number_lock_3",
    length: 3,
    image_url: numberLock3,
    type: "number"
  },
In my html, I have an input
passwordType() is one of the objects above.
This simply works when the type is text.
<input 
:type="passwordType().type"
:maxlength="passwordType().length"
 />
I am trying to make maxlength for the inputs, but whenever the type is number, maxlength wont work, are there any custom methods that I could use to make max length for the input based on the passwordType().length ?