Skip to content

Sync with original select's changes #45

@panych

Description

@panych

Hello, thanks for nice plugin.

Problem: fake and original selects don't synchronize properly when original changed programmatically.
Case: change original select programmatically (E.g.: selectElement.selectedIndex = 2).

In this case ikSelect doesn't update itself. And there is no method to do this manually, something like "sync" or "refresh".

I've found a workaround, but it's haky a little bit:

$('select.mySelect').ikSelect('showDropdown').ikSelect('hideDropdown');

So it's looks like there is two options:

  1. make an auto synchronization (didn't investigate yet), or
  2. add a public method to synchronize fake and original selects.

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