Skip to content

Error during resize #112

Description

@tbodev

I'm getting an error in a form using maxlength on several textareafields. If the maxlengthindicator isn't shown I'm getting an error:
TypeError: maxLengthIndicator is undefined

I've already found the error. Instead of:

currentInput.on('maxlength.reposition', function () {
            place(currentInput, maxLengthIndicator);    
});

My proposed fixed is:

currentInput.on('maxlength.reposition', function () {
            if (maxLengthIndicator) {
                place(currentInput, maxLengthIndicator);    
            }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions