Coder Social home page Coder Social logo

Comments (5)

muratcorlu avatar muratcorlu commented on June 2, 2024 1

What about defining a rule like "If it's not required, then the clear button should be visible when a selection is done"? If we set a select required with a default selection, then there will be no clear button and it will be not possible to make it invalid (like in pagination).

But I'm not sure about running the same rule on multi-selection mode. 🤔

from baklava.

ogunb avatar ogunb commented on June 2, 2024 1

We'll update the if as multiple or not required then.

I'll send a PR for this later today.

from baklava.

muratcorlu avatar muratcorlu commented on June 2, 2024

Looks like a nice suggestion. @buseselvi what do you think to show "clear selection button" to select, even if it's in single selection mode?

from baklava.

buseselvi avatar buseselvi commented on June 2, 2024

I think it is necessary to add the Clear button to the single select as well. But we need to keep it optional because, for the places like pagination, we bring the select selected and it should never be empty.

from baklava.

buseselvi avatar buseselvi commented on June 2, 2024

I looked at the benchmarks, and the clear button is always visible in multi-select, but it is optional in single-select.

from baklava.

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.