Skip to content

Commit 32f186a

Browse files
authoredJul 23, 2024
Merge pull request #1464 from shubham88fru/fix/fix-maxlength-attribute
Use the right attribute - `maxlength` instead of `maxLength`
2 parents ebd2760 + 0cb50f1 commit 32f186a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎addon/addon-test-support/@ember/test-helpers/dom/-guard-for-maxlength.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function isMaxLengthConstrained(
1919
element: Element
2020
): element is HTMLInputElement | HTMLTextAreaElement {
2121
return (
22-
!!Number(element.getAttribute('maxLength')) &&
22+
!!Number(element.getAttribute('maxlength')) &&
2323
(element instanceof HTMLTextAreaElement ||
2424
(element instanceof HTMLInputElement &&
2525
constrainedInputTypes.indexOf(element.type) > -1))

0 commit comments

Comments
 (0)