Skip to content

Highlight deletes characters on match double-up #1142

@Wardrop

Description

@Wardrop

Another highlighting related issue in the master branch. This is best explained with an example, included below. With the blow example, if you type "Isabel", everything is good, but when you start typing the "S" for street (i.e. "Isabel S"), the second "S" rematches the with the "s" in "Isabel". If you continue typing the "t" (i.e. "Isabel St"), the "sabel" is deleted. The whole issue seems to be caused by the fact that highlighting is being applied to already matched words, causing this kind of weirdness.

See related issues #1141 and #1098.

<select id="select-test">
    <option value="">Select a country...</option>
    <option value="AL">Isabel Street</option>
</select>
$('#select-test').selectize();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions