-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ui-lock-choice
for multiple select makes items unremovable after unlocking
#1878
Comments
I ran into this problem, too. The fix in #1824 fixes it for me. Just waiting for the next release. |
@CraigJohnson, ah, so the culprit is already found, good to hear. Looking forward to the next release then :) |
Just checking but is this already fixed in the 0.19.5 release? |
No, it is not. Until |
@CraigJohnson would you mind making a "new" PR for this with some tests. Happy to review. Thanks |
The fix has already been merged — https://github.com/angular-ui/ui-select/blob/master/src/uiSelectController.js#L494 — it just didn't make it into dist — https://github.com/angular-ui/ui-select/blob/master/dist/select.js#L785. |
Ah I see thanks will add it to the list for the new release. |
Can be closed now as it is merged. |
Bug description:
While using
ui-lock-choice
attribute insideui-select-match
formultiple
ui-select
after I lock and then unlock choices, all choices selected prior to locking become unremovable, clicking onx
just does nothing.This does not affect elements added after locking or all elements before locking ever applied, although repeated lock-unlock action makes them unremovable as well.
Bug reproduces since 0.18.1 till latest version (last working version is 0.17.1 as I tested).
Steps to reproduce:
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/KvDDll8h2wZg7JUJuWae?p=preview - use checkbox on top for lock/unlock
Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS
Angular: 1.4.9 or version used in Plunker demo
UI-Select: >=0.18.1
Bootstrap/Select2/Selectize CSS (if applicable): can't tell, look in Plunker demo (sorry)
The text was updated successfully, but these errors were encountered: