Comments (2)
This one's a bit tricky because the SelectItem
elements aren't rendered if the popover is unmounted. Consequently, Ariakit doesn't receive any information about the items from the React tree. Explicitly setting a defaultValue
is the recommended approach, especially for server-side rendering.
This is a limitation of compound components as opposed to passing the options as props, where you'd have this information upfront.
from ariakit.
Thank you for the info and quick response! We will either make the prop required or add a fallback defaultValue
.
from ariakit.
Related Issues (20)
- Nested tabs no longer working HOT 2
- Typeahead is not working correctly with virtualised select HOT 2
- Combobox setValue is called with empty when selectedValue changes HOT 3
- formStore.setError() with nested values completely broken HOT 2
- Input inside Menu does not autoFocus HOT 4
- PopoverAnchor should take precedence over PopoverDisclosure HOT 3
- 0.4.6 not exporting components correctly HOT 10
- 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
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.