Coder Social home page Coder Social logo

Comments (8)

JaleelB avatar JaleelB commented on July 25, 2024 2

Isn't it only shows the entered tags? @JaleelB

@kavinda1995 Yes, the popover shows the entered tags to prevent them from causing a long tag list which could possibly cause layout shifts. Regarding the possible options, I will work on a feature to toggle showing it list on focus or something. I misunderstood the original comment

from shadcn-tag-input.

JaleelB avatar JaleelB commented on July 25, 2024 2

@asaf @kavinda1995
The enhancements discussed in this thread have been addressed in the v1.2.0 release.

Key Improvements:

  • Integrated a popover for autocomplete list options to optimize screen space usage.
  • Added checkbox indicators for selected autocomplete items.
  • Ensured inputs remain editable when the popover is open.
  • Respected user-defined onBlur and onFocus events.

Thank you for your feedback! Feel free to test the new version and provide further feedback if needed.

from shadcn-tag-input.

JaleelB avatar JaleelB commented on July 25, 2024 1

But the list of all possible tags is always opened and with static 10 elements.

@asaf What do you mean by static 10 elements? You can extend the number of items in the list of auto-complete options. Regarding the list of auto-complete options always being shown, I see what you mean. I'll add a feature to only show it on input focus or something. That was a misunderstanding on my part with your original comment

from shadcn-tag-input.

kavinda1995 avatar kavinda1995 commented on July 25, 2024

+1 to this. Not having a popover makes this library a no-go for mobile devices

from shadcn-tag-input.

JaleelB avatar JaleelB commented on July 25, 2024
Screen.Recording.2024-05-22.at.8.32.07.AM.mov

@asaf This is something you can already do by passing the usePopoverForTags boolean. See the general properties under the API reference page: https://emblor.jaleelbennett.com/api-reference

from shadcn-tag-input.

asaf avatar asaf commented on July 25, 2024

But the list of all possible tags is always opened and with static 10 elements.

from shadcn-tag-input.

kavinda1995 avatar kavinda1995 commented on July 25, 2024

Isn't it only shows the entered tags? @JaleelB

from shadcn-tag-input.

asaf avatar asaf commented on July 25, 2024

I think it make sense, it can shrink down into a sort of a selectbox to avoid taking large portion of the screen :)
this is somewhat relevant to #29

from shadcn-tag-input.

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.