Giter VIP home page Giter VIP logo

Comments (3)

peminator avatar peminator commented on August 21, 2024

partial and weird solution is to use, not much expected to be, the atribute autocomplete="off" (or "on"),
but then

  • single click to focus filed does not open the list, (needs second click to show it, or use text input to start search,
  • the styling of the list suddenly looks worse (no more nice padding in chromium based browser, probably temporary thing in works)

from content.

Josh-Cena avatar Josh-Cena commented on August 21, 2024

A select is different from a datalist; I don't know why you would be looking to switch from one to another. A select limits the number of possible inputs to a finite range, but a datalist just provides supplemental information to an input and allows quick selection of common inputs, but it's still an input that accepts arbitrary text input at the end of the day.

Nevertheless I think we should add an example showing what it's like.

from content.

peminator avatar peminator commented on August 21, 2024

as i wrote in original post, it behaves diferent from select but many ppl tend to try use it because its like a "select with autocomplete" - therefore i did not push this to changing the behave way, just to mention it as warning in this description, to warn people about the difference. bc many ppl may tend to use it a "select with search/autocomplete":

  • datalist allows also entering values not in list
  • datalist also uses "same as select" option tags, but displays them diferently (does usually hide text content of tag, instead displays option value + label attributes

from content.

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.