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);    
            }
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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