Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control does not respect closeList: false when options are provided using "select as" syntax #121

Open
flakey-bit opened this issue Jan 31, 2019 · 1 comment

Comments

@flakey-bit
Copy link

If the options are provided using the select as syntax, the items pop-up dispels immediately after clicking an item when closeList is specified as false (oi-select-options).

closeList behaves as expected (list does not dispel, allowing selection of additional items) when select as is not used.

This works:

      <oi-select oi-options="item.name for item in shopArr track by item.id"
        ng-model="bundle"
        multiple
        oi-select-options="{closeList: false}"
        placeholder="Select"></oi-select>

This does not work:

      <oi-select oi-options="item.id as item.name for item in shopArr"
        ng-model="bundle"
        multiple
        oi-select-options="{closeList: false}"
        placeholder="Select"></oi-select>

Plunker demonstrating the problem: http://plnkr.co/edit/Dvbj5WDGGbgg20iQJkKj?p=preview

flakey-bit added a commit to flakey-bit/oi.select that referenced this issue Aug 21, 2019
…: false" when options are provided using "select as" syntax

The idea here is to update scope.groups (which was previously cleared) based on the selection

Also updated multiple example w/ keep-list-open to demonstrate fix
@flakey-bit
Copy link
Author

Pull Request for issue here:

#123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant