Comments (3)
- Yes this has been a long issue. Not sure but the current workaround for this is. I'll probably do a research
- Might have missed that, to fix.
- I'm sure it should refocus on the last focused element (before opening).
- I was sure it should close itself but probably there was some regression. I'll check it out again
from terracotta.
@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.
- I was thinking of the Listbox behavior mistakenly. This is the correct behavior due to how focus works with scrolling.
- According to the WAI-ARIA definition of Menu:
Disabled menu items are focusable but cannot be activated.
So the current behavior is correct.
-
This might be fixable.
-
This is left for user to implement.
from terracotta.
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.
from terracotta.
Related Issues (20)
- Popover but without the close on blur HOT 6
- Combobox HOT 6
- Popover transition enter doesn't work. HOT 3
- Missing `Tab.Panels` component HOT 4
- Issue when using solid-headless with Astro HOT 5
- Modal allows background text selection & scroll HOT 6
- Usage with Islands? HOT 6
- Can you add some installation instructions please? HOT 1
- `HTMLElement is not defined` when using SSR, render function & `createResource` HOT 1
- Do you have alternative for headlessUI Switch? HOT 1
- Can we have example for select please? HOT 1
- Menu components that are difficult to understand
- Hide PopoverPanel on href/link click HOT 1
- createUniqueId in Toaster causes issues with solid-start HOT 6
- listbox with multiple prop unable to unselect option HOT 1
- What do I use instead of Fragment? HOT 1
- Add docs please, trying to add checkbox, nothing gets shown HOT 2
- Can't use with solid start HOT 6
- 1.0 release
- TypeError: Cannot read properties of undefined (reading 'matches') HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terracotta.