GithubHelp home page GithubHelp logo

Comments (8)

sa-si-dev avatar sa-si-dev commented on July 19, 2024 1

@Jaaap this issue got fixed in the release v1.0.19

To avoid this issue, use setValueAsArray: true property. By doing so, multiple select's value would be available as JSON string in the hidden input (e.g. '["1", "2"]')

from virtual-select.

sa-si-dev avatar sa-si-dev commented on July 19, 2024

@Jaaap I will check and fix it in the future release.

from virtual-select.

Jaaap avatar Jaaap commented on July 19, 2024

Ah thank you for this solution.
I realise i have not made clear what i want to achieve:
To make it behave exactly like a select[multiple] which means a separate input[type=hidden] for each value.

That way we can use it as a progressive enhancement on an existing select.
Is that feasible?

from virtual-select.

sa-si-dev avatar sa-si-dev commented on July 19, 2024

Ah thank you for this solution. I realise i have not made clear what i want to achieve: To make it behave exactly like a select[multiple] which means a separate input[type=hidden] for each value.

That way we can use it as a progressive enhancement on an existing select. Is that feasible?

@Jaaap, The concept of this plugin is to improve the performance by avoiding the number of DOM elements on the page.
If we add a separate input[type=hidden] for each option, this might affect the performance.

from virtual-select.

Jaaap avatar Jaaap commented on July 19, 2024

Yes your performance is awesome!
I think it will still be acceptable if you start without any input[type=hidden] for multiple and dynamically add input[type=hidden]'s when users select options.

from virtual-select.

sa-si-dev avatar sa-si-dev commented on July 19, 2024

@Jaaap I will try this and use it if not affecting the performance.

from virtual-select.

Jaaap avatar Jaaap commented on July 19, 2024

Gentle reminder.
Is this still on your radar?

from virtual-select.

sa-si-dev avatar sa-si-dev commented on July 19, 2024

Yes your performance is awesome!
I think it will still be acceptable if you start without any input[type=hidden] for multiple and dynamically add input[type=hidden]'s when users select options.

I tried this method. Even though we add hidden input for only selected options, there may be a case where select all action would add hidden input for all options available.

from virtual-select.

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.