-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Latest release breaks select when tagging and tagging-label="false" are set #1214
Comments
I suspect that the bug is related to this commit: |
I cannot reproduce it, I tried the multi select demo but when pressing a choice it works correctly, can you setup a plunker or confirm how to reproduce it? |
I'll see if I can get it on a plunkr tomorrow, if I have time. |
For now, here is the code for the select that doesn't work: |
Can you confirm if |
|
This seeminly also broke the styling for the bootstrap theme, previously the hover effect was a blue background, now it's gray. |
@dimirc Actually, as @realityking says, you can even see in you multiselect demo that the bootstrap styles are broken in the current release. I suspect if you track down that bug, the bug I see in functionality (but have yet reproduced in a plunker) may be fixed. |
@realityking @karptonite maybe the confusion here is that with #1211 we removed the ability to set activeIndex on hover and actually only change the background (with css) on hover to give some visual feedback. To change the activeIndex was causing a useless performance hit on hover since the activeIndex was change (and a full $digest). I see more sense on having the current activeIndex change only by the UP/DOWN keys and only a hover effect when mouse over. |
@dimirc I'm sure that caused the problem, but I'd argue that until it works as before, the performance hit wasn't useless. :) unfortunately, I still haven't had time to reproduce the functional bug I showed in the video, but the problem with the bootstrap theme is out there on the current release, and reproducible in the plunker. |
@karptonite but what is the problems that is reproducible? Please explain me clearly what is expected and what is now showing so I can fix it if it's actually broken |
@dimirc OK, while I wasn't able to reproduce the exact problem, what I found is this: |
Hello, any update on this? this is still not working |
Honestly, my workaround was just not to use |
I only reverted back 2 pieces of code (check f6b6d81 for the whole changelist that produced the issue): I reverted: and ctrl.setActiveItem = function(item) { Now tagging-label='false' tagging="myAddTagFunction" works like a charm while before: either you can only select (mouse click) a predefined value and add new tag (using keyboard for selecting was actually working) |
Can the Plunker be updated with the latest release? |
I updated the plunker with the latest release, here: It seems to show the same problem behavior as the previous plunker, however, I didn't look at it to carefully. |
I'm having this same issue with single select. Both of the single select demos on the official examples page exhibit the issue: http://angular-ui.github.io/ui-select/demo-tagging.html (Last two examples. In the example Tagging in Single Select mode you can select existing options but it's impossible to create new options. In the example Tagging in Single select mode, with simple strings there are no existing options and so nothing can be selected.) |
A minimal plnkr for this: http://plnkr.co/edit/oVra6eBaFaLVo1PvM6JL?p=preview First one tagging and selection works. Second one only tagging works. Mouse click no longer does anything. The issue seems to be when This behaviour still exists in 1.17.1. |
Is there any fix/workaround that'll allow for single select tagging? I've tried to look through the issues here, but I feel like I keep running into a scenario where people only show multiple select tagging working or I run into a dead end where some fix didn't actually fix the problem. EDIT: nevermind, I was able to get a workaround for my particular combo of versions (had previously thought I was already using tagging-label="false", but turns out I was doing something different w/ tagging-label, and setting it to false fixed my issue). |
The issue still persists when tagging and tagging-label="false" are set. Matching items are not highlighted. |
the following changes to uiSelectChoicesDirective.js on line 65 solved the issue.
|
I don't have a plunker for it yet, but the latest release has broken select for me. Here is a quick video example:
http://quick.as/r2zvin2lb
The text was updated successfully, but these errors were encountered: