GithubHelp home page GithubHelp logo

Comments (2)

reinink avatar reinink commented on May 19, 2024 1

Hey! Thanks for reporting this.

I just did a bit of research, and it's interesting because Radix UI and React Aria both open the listbox (select) on enter, but Reach UI does not. Looking at the ARIA spec for the listbox pattern and it doesn't mention anything about the enter key, so I guess that means that libraries are free to implement that behavior however they prefer.

That said, given that all of the other form controls in Headless UI v2.0 submit the form when pressing the enter key (other than the Textarea component of course), I think it makes sense to update our Listbox component to behave the same way.

We're working on a PR to add that and will report back shortly when that's been added 👍

from headlessui.

reinink avatar reinink commented on May 19, 2024 1

Hey! We just published an insiders release which updated the Listbox component to submit the form when pressing enter instead of opening it.

Here's how to install it:

npm install @headlessui/react@insiders

Hope that helps! 🤙

from headlessui.

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.