Giter Site home page Giter Site logo

Re: Issue 45 about minimalect HOT 9 OPEN

groenroos avatar groenroos commented on June 29, 2024
Re: Issue 45

from minimalect.

Comments (9)

fearghalmurphy avatar fearghalmurphy commented on June 29, 2024

Oh wait.. I think its allowing mutiple selections. Maybe that explains it. Is there a way to disable this?

from minimalect.

groenroos avatar groenroos commented on June 29, 2024

Multiple selections shouldn't be on for any selects unless the original element has the multiple property. This is a bug; I'll have to do some investigation. Sorry about this!

from minimalect.

peirix avatar peirix commented on June 29, 2024

@groenroos Any closer on this? I'm getting the same problems now.

from minimalect.

kulpreet avatar kulpreet commented on June 29, 2024

This bug is a bit of a bummer.

@groenroos Do you know what is causing this problem? Maybe we can help you can tell us where to look.

from minimalect.

rcstr avatar rcstr commented on June 29, 2024

i'm having the same problem right now! any update on this? thanks

from minimalect.

pipsmithe avatar pipsmithe commented on June 29, 2024

Would love an update here! :)

from minimalect.

pipsmithe avatar pipsmithe commented on June 29, 2024

I've delved into the code, and 'hacked' a solution here...

copied line 108:

this.items = this.wrapper.find('li');

...to line 550, meaning when a selection is made the array of options is refreshed from the dynamically created content, rather than the old array of original options.

Does the trick for me - albeit probably not very efficient. Perhaps @groenroos will have a moment to review and fix properly.

Kind regards,

Tom

from minimalect.

pipsmithe avatar pipsmithe commented on June 29, 2024

Ah, better still - inject the following at line 208...

m.items = m.wrapper.find('li');

This performs the update, but only when the DOM changes, and not on every selection change. :)

from minimalect.

mrchristophy avatar mrchristophy commented on June 29, 2024

I'm having similar problems, but with the 'update' function. I'm using React to dynamically render select lists, the default mutate doesn't seem to work (because it's not in the DOM) - but the update function does. Any idea how to hack the plugin so that the new options are selectable?

from minimalect.

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.