Skip to content

Doesn't work for form elements #64

@oskarrough

Description

@oskarrough

Hi, as <form> elements have a length they can't be used as Wallop containers because of this:

if (selector.length > 0) {  
  throw new Error('Selector cannot be an array, Refer to Usage documentation: https://github.com/peduarte/wallop#javascript');
} else {
  this.$selector = selector;
}

Any thoughts how we could like to deal with it? Something like if (selector.tagName !== 'FORM' && selector.length > 0) { perhaps?

Great module by the way, works really well otherwise!

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