Skip to content

[Bug]: createOnBlur ignores values that match existing options #914

@bt-nn

Description

@bt-nn

Bug description

When typing exactly an already existing option, it doesn´t get selectet on blur.

Expected behavior

example on JSFiddle

<select id="select-tags" multiple class="form-control">
    <option>AA</option>
    <option>AB</option>
</select>
  • Type “BB” → clicked out → BB tag gets created as expected
  • Type “AA” (which already exists as an ) → clicked out → "AA" should be selected

Steps to reproduce

example on JSFiddle

  • Type “BB” → clicked out → BB tag gets created as expected
  • Type “AA” (which already exists as an ) → clicked out → nothing happens

Additional context

Tom Select v2.4.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions