GithubHelp home page GithubHelp logo

Comments (5)

dirslashls avatar dirslashls commented on September 25, 2024 1

I agree the default highlighting is not that useful because the dropdown doesn't show up like the html select (spanning both the top and bottom of the select control). However, would it be possible to visually indicate the currently selected item? See attached video for the HTML select.

select.mov

from tagify.

yairEO avatar yairEO commented on September 25, 2024

Some months ago I've changed the setting dropdown.highlightFirst to be true by default:
https://github.com/yairEO/tagify/blob/master/src/parts/defaults.js#L86

I thought it would be easier for users to add tags while typing a value and seeing the suggestions list filtered so they could just press the ENTER key after they are finished and it would select the first item in the suggestions list because that would be the most probable match.

I can change the default back to false if you believe this to be a bad change of my part

from tagify.

dirslashls avatar dirslashls commented on September 25, 2024

Thanks @yairEO for the response. Default of dropdown.highlightFirst to true is fine as I can set it to false in my app. However, when I just tried false it doesn't highlight the currently selected item which is the behavior of HTML select. Is it possible to get this behavior when the dropdown.highlightFirst is false?

from tagify.

yairEO avatar yairEO commented on September 25, 2024

I can change the code to auto-highlight the already-selected tag (if the highlightFirst setting it set to false), but I don't see what benefits this provides to users

from tagify.

yairEO avatar yairEO commented on September 25, 2024

Done, check it out:

https://github.com/yairEO/tagify/releases/tag/v4.27.0

See it live: https://yaireo.github.io/tagify/#section-mode-select

from tagify.

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.