Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Selectr is not idempotent #145

@rnickmccandless

Description

@rnickmccandless

When instantiating an instance of new Selectr(element) with the same element multiple times, Selectr generates new HTML markup resulting in duplicating drop downs.

Unexpected result:
Screen Shot 2020-05-27 at 1 09 16 AMe

This was first noticed when using Turbolinks while navigating the website forward, then back.

* I understand that at this time, the project is not being maintained. Hopefully this project will see a new maintainer soon since Selectr has been a great simple way to apply a better select element.

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