Skip to content

Highlight only works for the first typed letter #1098

Closed
@skimi

Description

@skimi

The highlight only highlights the first or first and second letterz (if you are fast) of the input text.
Afterward anything you type is ignored.

Also, if you copy paste a string in the input it will be highlighted completely but will ignore anything you type after that string.
This must be related to some kind of timing issue.

highlight

Steps to reproduce:

  1. On http://selectize.github.io/selectize.js/ Email Contacts example
  2. Type "brian"
  3. Only "b" or "br" is highlighted

Expected result:
Brian should be highlighted in both the email and the name

Actual result:
Only "b" or "br" is highlighted

Might be related:
The highlight <span class="highlight"> gets wrapped inside other <span class="highlight"> at each new highlight instead of resetting the string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions