Giter VIP home page Giter VIP logo

Comments (4)

sashamilenkovic avatar sashamilenkovic commented on May 27, 2024 1

@kadirboylu Good question! I can see why this would be a bit confusing.

The autocomplete input by default has the prop always-load-on-open set to true. This means anytime the autocomplete is expanded, we are directly calling the options loader function. This is why you are seeing the page increment erroneously (the load options function is being called too many times).

By setting the prop always-load-on-open to false, you will see this function behave more like how you would expect: https://formkit.link/01e8552a38d3a03faf8f187275f2ff1a

We could maybe point out this prop always-load-on-open a bit more in the autocomplete and taglist docs specifically.

Let me know if you have any more questions.

from formkit.

kadirboylu avatar kadirboylu commented on May 27, 2024 1

@sashamilenkovic thank you for everything!! πŸ₯³πŸ˜„

from formkit.

kadirboylu avatar kadirboylu commented on May 27, 2024

@sashamilenkovic thank you for your quick response and detailed explanation πŸ™‚ Is there an easy way to change the default value of the always-load-on-open prop for all autocomplete inputs? I dont want to add :always-load-on-open="false" by one by

from formkit.

sashamilenkovic avatar sashamilenkovic commented on May 27, 2024

@kadirboylu No problem at all! Here's an example of using a FormKit plugin to always set always-load-on-open to false for the autocomplete: https://formkit.link/33c6705a1f7143317e0b636f50e3a7af.

from formkit.

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.