Giter VIP home page Giter VIP logo

Comments (3)

lxsmnsyc avatar lxsmnsyc commented on August 30, 2024
  1. Yes this has been a long issue. Not sure but the current workaround for this is. I'll probably do a research
  2. Might have missed that, to fix.
  3. I'm sure it should refocus on the last focused element (before opening).
  4. I was sure it should close itself but probably there was some regression. I'll check it out again

from terracotta.

lxsmnsyc avatar lxsmnsyc commented on August 30, 2024

@Brendan-csel after re-evaluation here are some of my thoughts

Primarily, the dropdown-menu example is supposed to be just a Popover + Menu demo. The thing about this is that there's no predefined behavior for when these two are combined, and thus it is left to the user implementation to control the visual state of the dropdown.

  1. I was thinking of the Listbox behavior mistakenly. This is the correct behavior due to how focus works with scrolling.
  2. According to the WAI-ARIA definition of Menu:

Disabled menu items are focusable but cannot be activated.

So the current behavior is correct.

  1. This might be fixable.

  2. This is left for user to implement.

from terracotta.

Brendan-csel avatar Brendan-csel commented on August 30, 2024

Thanks @lxsmnsyc.

I'm trying out some other options but for the sake of completely documenting this, here is a stackblitz link

And a capture of me focusing the button, pressing down a few times (and not getting past the disabled item), then pressing escape.
GgDTKJvthf

from terracotta.

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.