Skip to content

Commit 66159a3

Browse files
committed
fix: risolto hasAttribute() su oggetto null
1 parent bd120f7 commit 66159a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/src/js/functions/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Input.prototype.init = function () {
108108
}
109109

110110
// Inizializzazione per textarea / charcounter
111-
else if (this.element.hasClass('autosize') || htmlElement.hasAttribute('charcounter')) {
111+
else if (this.element.hasClass('autosize') || this.element.attr('charcounter')) {
112112
if (this.element.hasClass('autosize'))
113113
initCompleted = initTextareaInput(htmlElement);
114114

0 commit comments

Comments
 (0)