Balram Singh
Balram Singh

Reputation: 1754

How to add max length in input of semantic-ui-react?

Max length is not working in Input of semantic-ui-react.

<Input {...input} type={type} size={inputSize} transparent={transparent} disabled={disabled}>
   <input data-selector={`${dataSelector}-input`} maxlength="2" />
</Input>

Upvotes: 5

Views: 8164

Answers (1)

Lucas SenCab A Ugh
Lucas SenCab A Ugh

Reputation: 336

You are missing the capital

e.g. maxLength="2"

Upvotes: 15

Related Questions