scusa, ma non potrebbe essere un problema HTML di maxlength del campo input?