bootstrap-maxlength icon indicating copy to clipboard operation
bootstrap-maxlength copied to clipboard

allowOverMax is NOT working

Open SashkaDev opened this issue 4 years ago • 2 comments

This is the only reference in code: if (options.customMaxAttribute && !options.allowOverMax) { var custom = currentInput.attr(options.customMaxAttribute); if (!max || custom < max) { max = custom; } } It only replace the maxlength attribute for the custom attribute name. I think that the usefull thing is that the maxlength is only informative when you set allowOverMax to true.

SashkaDev avatar Jan 11 '21 19:01 SashkaDev

it has never been working for me either.

ekinox avatar May 31 '21 22:05 ekinox

Unless you remove the native form validation you can't use the form validation attributes on inputs (such as maxlength) because the browser is going to stop you from inputting more values. See this example: https://jsbin.com/mijanixivi/edit?html,output

mimo84 avatar May 31 '21 23:05 mimo84