Comments (3)
ENG-631 [BUG] - Select Component defaultSelectedKeys props doesn't react to a state change in nextui
from nextui.
defaultSelectedKeys
is uncontrolled and won't be updated by setCategory
. You can just use selectedKeys
which is a controlled. You may also need isLoading
for your async loading (example).
I have some logic for setCategory to a specific value from my database (fetch API), the NextUI Select still warns me that the '' (the initial value) is not presented in the collection
I've made the fix in here
from nextui.
defaultSelectedKeys
is uncontrolled and won't be updated bysetCategory
. You can just useselectedKeys
which is a controlled. You may also needisLoading
for your async loading (example).I have some logic for setCategory to a specific value from my database (fetch API), the NextUI Select still warns me that the '' (the initial value) is not presented in the collection
I've made the fix in here
Yeah, you're right I have done it using selectedKey. Thank you so much, bro.
from nextui.
Related Issues (20)
- [BUG] - Project created via `nextui init` fails to `yarn build` HOT 2
- [BUG] - Cannot Change Value after select item in Autocomplete HOT 2
- [BUG] - Skeleton animation is superimposed on other elements HOT 1
- [BUG] - Not working use pnpm monorepo. HOT 5
- [BUG] - does the next-ui doc have something error of the classNames type descripition? HOT 3
- [BUG] - DropdownItem routing don't work as expected HOT 7
- [BUG] - When using the Button component on mobile devices, the first onPress event is ignored HOT 3
- [BUG] - Activating a Modal within the NavbarMenuItem event prevents sliding in any direction on elements within the Modal. HOT 1
- [BUG] - Select style suddenly not working. HOT 3
- [BUG] - Autocomplete's keyboard shortcuts behave weirdly HOT 6
- Styles of NextUI Components Not Displayed on Vercel Deployment HOT 4
- [BUG] - NextUIProvider navigate not being called HOT 3
- [BUG] - Some components are missing Slots section in their documentation. HOT 3
- [BUG] - Card component "flashes" when switching between light and dark color modes HOT 3
- [BUG] - Popover's arrow should combine with the border line of the box HOT 1
- [BUG] - Blur is not working on iPhone HOT 1
- [BUG] - Table Row Key forces string typing. HOT 1
- [BUG] - DATEPICKER WITH INTERNALIZATION HOT 3
- In modal box Input Fields Obscured or hidden below by Keyboard on Mobile Devices HOT 4
- [Feature Request] Documentation: Remove the "show more" button in the component's code example sections 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 nextui.