Repository navigation
The maxlength attribute of a text input field is not being respected
#21424
AmarBouchibane
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm using pdf.js 5.7.284 in an iFrame and have a PDF that allows an input field with a maximum of 5 characters. However, pdf.js allows more than 5 characters to be entered. Here's what the HTML for the input element looks like:
<input type="text" value="" data-element-id="230R" name="Postleitzahl" tabindex="0" required="true" aria-required="true" maxlength="5" id="pdfjs_internal_id_230R" style="overflow-x: hidden; font-size: calc(8.4px * var(--total-scale-factor)); color: rgb(0, 0, 0); background-color: transparent;">Best regards,
Amar
All reactions