Skip to content

Commit 0cb50f1

Browse files
committed
use the right attribute instead of
1 parent 3b83f12 commit 0cb50f1

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)