Skip to content

The remove_button plug-in button doesn't always remove the selected option. #1417

@howardb3115

Description

@howardb3115

I did:

  • Search for if my issue has already been submitted
  • Make sure I'm reporting something precise that needs to be fixed
  • Give my issue a descriptive and concise title
  • Create a minimal working example on JsFiddle or Codepen
    (or gave a link to a demo on the Selectize docs)
  • Indicate precise steps to reproduce in numbers and the result,
    like below

[I have to click on the remove button a second time in order to remove an item from the selected options list.

This is different than #987 because focusing on the input area doesn't help AND my list only has 9 items in it.

The first attempt to remove a selected option this occurs every time, but after removing most of the selected items, the selected option sometimes does get removed the first time it's remove button is clicked.]

Steps to reproduce:

  1. Open the Codepen at https://codepen.io/howardb1/pen/QxNYaW
  2. There are two columns of steps describing issue. The second one relates to this reporting.
  3. In short, open the drop-down list by clicking on the down-arrow of the minimized drop-down-list.
  4. Click on the remove button of the sixth selected option and notice that the option isn't removed until the remove button of that option is clicked a second time.

Expected result:
The selected option should be removed the first time that it's remove button is clicked.

Actual result:
The selected option is not removed the first time that it's remove button is clicked..

[Using the latest versions of Chrome, IE, Edge, and Firefox, running in Windows 10.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions