Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

Can't work with ui-select #173

Closed
goldylucks opened this issue Dec 10, 2014 · 4 comments
Closed

Can't work with ui-select #173

goldylucks opened this issue Dec 10, 2014 · 4 comments

Comments

@goldylucks
Copy link

We use ui-select in our project, and with the latest update of batarang, it gives out the following error:

Error:
Variable "$select.setActiveItem" called on LI element does not exist in that scope. Event directive found on "

  • Adam
  • ".

    image

    When I remove batarang it works :)

    @btford
    Copy link
    Contributor

    btford commented Dec 10, 2014

    Can you please provide a runnable reproduction via jsbin, plnkr.co, or jsfiddle? This saves me a lot of time. Thanks!

    @ghelton
    Copy link

    ghelton commented Jan 15, 2015

    @btford I found that testing using a plnkr did not produce the problem. Additionally when I test on my on production site its not a problem. The problem only manifests when running on localhost as seen in the screenshot. To reproduce download a zip of the plnkr using the link below and run it in a local server. Just opening the file using file protocol wont do it. Disabling Batarang causes the issue to disappear.

    http://plnkr.co/edit/juqoNOt1z1Gb349XabQ2?p=preview

    @bartvanremortele
    Copy link

    I've had an issue with ui-select aswell. Mainly when the autocomplete has result labels I seem to be unable to click on them when having Batarang installed. Pressing enter selects the autocomplete just fine. I have this issue with a tagging implementation (example can be found here: https://github.com/angular-ui/ui-select/blob/master/examples/demo-tagging.html)

    @SomeKittens
    Copy link
    Member

    Tested with 0.8.7, this works now.

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

    No branches or pull requests

    5 participants