Git Product home page Git Product logo

Comments (6)

julesrenaud avatar julesrenaud commented on May 10, 2024

Btw, this refactor has lead to breaking changes in multiple Strapi plugins. Very frustrating to debug also, the documentation is very light on detail.

from design-system.

gu-stav avatar gu-stav commented on May 10, 2024

@julesrenaud Can you please describe the issues you are facing with reproducible steps? It would be best if you can open separate issues for each problem - otherwise it is almost impossible for us to fix these problems.

from design-system.

julesrenaud avatar julesrenaud commented on May 10, 2024

@gu-stav what I've stumbled upon thus far is that the clear button used to be present and usable automatically, now the onClear attribute needs to be specified. Also, it's now impossible to have a list that has autocomplete === none. If a value is selected, upon opening the combobox, only the selected value is shown as an option. Autocomplete should be a usable option, because in the past it was possible to manage the shown options programmatically.

from design-system.

julesrenaud avatar julesrenaud commented on May 10, 2024

@gu-stav I think a very simple fix would be to add a autocomplete prop to be able to use 'none', as outlined as an example here: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-none/

from design-system.

joshuaellis avatar joshuaellis commented on May 10, 2024

@gu-stav I think a very simple fix would be to add a autocomplete prop to be able to use 'none', as outlined as an example here: w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-none

it's not a simple fix because i believe if you set autocomplete === "none" then you need to start visually focussing items in the list, however, this addition has been added in #985 and is hopefully going to be released in the next two weeks.

I've stumbled upon thus far is that the clear button used to be present and usable automatically, now the onClear attribute needs to be specified

You're welcome to submit a PR to fix this 👍🏼

from design-system.

julesrenaud avatar julesrenaud commented on May 10, 2024

@joshuaellis thank you for your response. I don't know how the Combobox component was designed/working before, all I know is that custom field plugins that were based on it stopped working after a minor upgrade of Strapi, which is obviously a problem. I'm sure y'all are making the design system better through these upgrades, just a heads up though that these components are used externally and that breaking changes without notice in minor upgrades should be avoided.

Personally I'll just adapt my plugins to the changes that were made. I'm using a fork in production for the autocomplete === none feature in the meantime.

from design-system.

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.