Giter Club home page Giter Club logo

Comments (14)

leocaseiro avatar leocaseiro commented on May 11, 2024 3

Hi @climbican, try add an empty <option></option>. It should work as well.

from angular-chosen.

jr314159 avatar jr314159 commented on May 11, 2024

Duplicate of #8

from angular-chosen.

freeman42x avatar freeman42x commented on May 11, 2024

@findar: After applying the patch the exception is still being thrown.

from angular-chosen.

findar avatar findar commented on May 11, 2024

@razvan-panda unsure how to assist you; It resolved the issue I was having. Are you modifying the array at any point programmatically ? If so you may have to trigger chosen:updated elsewhere.

from angular-chosen.

freeman42x avatar freeman42x commented on May 11, 2024

@findar: In the end I made it work by adding the empty option tag as mentioned in #8 instead of using this fix.

Just wanted to mention that this method did not work in case anyone else wonders why it doesn't.

from angular-chosen.

sergiu-paraschiv avatar sergiu-paraschiv commented on May 11, 2024

findar's solution worked for me. I'm not using ngOptions.

from angular-chosen.

Hrafnkellos avatar Hrafnkellos commented on May 11, 2024

I had this error and this fixed it for me. thanks.

from angular-chosen.

DaleCam avatar DaleCam commented on May 11, 2024

A solution that worked for me was making sure that the event binding method (I was binding an onchange event) always returns true. If not, you get the above error, due to event bubbling.
I hope that helps someone.

from angular-chosen.

TameshwarNirmalkar avatar TameshwarNirmalkar commented on May 11, 2024

thanks that also worked for me.

from angular-chosen.

venkateshparihar avatar venkateshparihar commented on May 11, 2024

how to write this inside
ap.directive('chosen3',function(){

var linker = function(scope,element,attr){
    scope.$watch('recipientsLis12',function(){

        element.trigger('liszt:updated');
    })

    element.chosen();   
};
return{
    restrict:'A',
    link: linker,

}

})

from angular-chosen.

pedro380085 avatar pedro380085 commented on May 11, 2024

findar solution also worked for me.

from angular-chosen.

Hasan-git avatar Hasan-git commented on May 11, 2024

Working 100 %

from angular-chosen.

climbican avatar climbican commented on May 11, 2024

Thank you that worked great for me too!!

from angular-chosen.

donotdont avatar donotdont commented on May 11, 2024

https://ashuthinks.wordpress.com/2016/02/18/chosen-js-dropdown-last-select-issue/

from angular-chosen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.