Code Monkey home page Code Monkey logo

Comments (5)

JosephusPaye avatar JosephusPaye commented on August 15, 2024 1

The problem is that at the moment the value passed to the default prop must be in the options array (as in they must be references to the same object) for the equality to match. This is fixed in #37, which will be merged for v0.8.9.

As for the options array format, I plan to support your 1st example in addition to the 2nd one, which is the current format. This will bring the API more in line with UiAutocomplete, which supports a simple array of strings as well as objects with text and value properties.

from keen-ui.

JosephusPaye avatar JosephusPaye commented on August 15, 2024 1

The options and defaults prop for UiSelect has been overhauled in v0.8.9.

It now supports all your examples above, as you can customize the keys using the new keys prop.

See the UiSelect docs.

from keen-ui.

gbdematos avatar gbdematos commented on August 15, 2024

Oh, that's wonderful! Thank you for the quick reply. I checked the "Issues" to see if someone already commented on that, but forgot to check the Pull Request, sorry.

One more thing I forgot to add, @JosephusPaye, can the search input inside the select have autocomplete="off"? So that the browser suggestions don't appear on top of the search results.

Thanks. ^^

from keen-ui.

JosephusPaye avatar JosephusPaye commented on August 15, 2024

Yeah, that's an oversight. The browser autocomplete should be diabled. Will be fixed in v0.8.9.

from keen-ui.

JosephusPaye avatar JosephusPaye commented on August 15, 2024

Implemented in 5cd6be3

from keen-ui.

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.