Comments (4)
A textbox (input
) isn't a valid child of a role="menu"
element (Menu
). If you describe the kind of UI you're trying to implement, I can suggest a more appropriate structure. For example, consider a Menu with Combobox.
from ariakit.
Thank you for the reply @diegohaz ! The UI I want to achieve is just rending a Input inside a dropdown , thats why I had chosen to have an input element inside the Menu
component
I have just found a solution for this using initialFocus
passed to Menu
. This solved the issue I was facing
https://codesandbox.io/p/sandbox/gallant-kapitsa-m83myg?file=%2Fsrc%2FApp.js%3A18%2C11-18%2C23
from ariakit.
I see. If you want an input inside a dropdown, you probably want to use Popover, not Menu
. As I said, a textbox (input
) isn't a valid child of a role="menu"
element (Menu
). This will produce an invalid accessibility tree.
from ariakit.
Oh got it ! yes using Popover
will help in implementing the UI I need , thank you so much will proceed with this ! 😄
from ariakit.
Related Issues (20)
- Unexpected behavior when composing Popover and Tooltip on the same element HOT 10
- Composite: two-dimensional arrow navigation with MenuButtons HOT 9
- Infinite dialog(alert, etc.) loop on `<Radio>` button change with arrow key navigation
- MenuItems lose focus upon being activated HOT 1
- Consume provider values via render prop as `children` HOT 3
- MVP for every release
- Consider setting ‘min-width’ with ‘sameWidth’ for popovers
- AutoSelect weird behavior in virtualized SelectCombobox during Touch Events HOT 1
- Unexpected behavior from `CheckboxCheck` with custom children when unchecked HOT 4
- `focus()` method of elements called without `focusVisible: true` HOT 8
- `includesBaseElement` of `ComboboxProvider` overrides `SelectProvider`’s same prop HOT 1
- Unexpected behavior when updating to the latest Next.js version HOT 2
- Animating children of Disclosure breaks after first animation HOT 7
- Tabbing doesn't work correctly with multiple consecutive RadioGroups HOT 3
- Disclosure is animating in even if the default state is open HOT 2
- Combobox Typing Issues with Virtualized List on Some Android Devices HOT 3
- Closing dialog causes other components flicker on iOS Safari HOT 2
- Warn when both `value` and `defaultValue` are specified on a store
- [RadioGroup] `disabled` prop has no effect
- [RadioGroup] Add `name` prop, passing it to `Radio` children
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 ariakit.