Comments (2)
Hi @irinatarn,
Based on your example, you should use value
props instead of defaultValue
. defaultValue
prop is for Uncontrolled Input. In your case you're using Controlled input.
Here is the working example: https://stackblitz.com/edit/wxajxv-mcjumr?file=src%2FComboBox.tsx
Here is the documentation for controlled Combobox.
https://react.fluentui.dev/?path=/docs/components-combobox--default#controlled
from fluentui.
Hi @pradeept95,
In my scenario I need couple of combo boxes on the page to be Uncontrolled Input and been populated with default value and not loose that value on rerender. The example is valid. The bug is valid too.
Thanks,
I.
from fluentui.
Related Issues (20)
- [Bug]: Dialog fails to render if DialogSurface is in another component HOT 2
- [Bug]: Open overlay drawer fails with Vite app HOT 1
- [Feature]: New List - add support for Home/End HOT 1
- [Feature]: Tooltips should not render when Menus are open
- [Bug]: GroupedVerticalBarChart throws error when data is empty (not null)
- [Bug]: Tree with virtualization focus on active tree item HOT 1
- When 'maxOfYVal' is exposed in VerticalStackedBarChart, prop provides expected behaviour but typecheck fails. HOT 1
- [Bug]: Menu not appearing when MenuButton is clicked HOT 2
- List: Bundle size fixtures
- List: Performance test scenario HOT 1
- [Feature]: add RTL support to motion APIs HOT 1
- [Feature]: Skeleton should have `size` prop
- [Feature]: TagPicker v9 Enhancements (Single Line Overflow, Multi Select Pattern) HOT 1
- [Bug]: Image assets in docs 404 HOT 1
- [Bug]: [Calendar compat]: When we navigate to the date cell, screen reader is annoucing date twice
- [Bug]: [vite]: Rollup failed to resolve import "scheduler" from "D:/a/1/s/node_modules/@fluentui/react-context-selector/lib/createContext.js".
- [Bug]: TypeError: element.getBoundingClientRect is not a function HOT 1
- [Bug]: useToastController - 'Cannot call an event handler while rendering' error when run jest tests HOT 1
- [Bug]: Opening Drawer from Modal causes focus issues HOT 3
- Bump @fluentui/react-theme-sass to stable
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 fluentui.