Comments (7)
Just released v1.6.0 including onMenuOpen, please check it.
But in your case, if your "50 selectfields" all share same data, or even only 5 different datasets, i would strongly encourage to avoid using onMenuOpen on each component.
Instead fetch your shared datasets on page load in componentDidMount, then reference each selectField with its corresponding dataset.
An alternative method would be to use cache, ie put your fetch method in onMenuOpen but include a check if dataset already exist in cache, if yes load it directly, otherwise make the server request.
from material-ui-superselectfield.
Hi!
I've implemented an onMenuOpen event. Check it out on my fork
from material-ui-superselectfield.
Nice fork, could you please make a release to npm... 🎴
from material-ui-superselectfield.
There is already one: material-ui-selectfield
We are using it in production.
from material-ui-superselectfield.
Thanks
from material-ui-superselectfield.
tried onMenuOpen to fetch data - with no luck. On first click dropdown is not opened, but on second is ok works. Can you add an example of async data?
from material-ui-superselectfield.
So how I should do to prevent user to click on dropdown twice to see the actuals results
from material-ui-superselectfield.
Related Issues (20)
- Disabled is not showing the value
- Package as of 1.9.2 is shows as vulnerable on snyk HOT 2
- Automatically scroll to selected element?
- Upgrade to material-ui v1.2.0 HOT 2
- Add event to onSelect function
- useLayerForClickAway not working? HOT 3
- [QUESTION] floatingLabelFixed prop (or style) available? HOT 7
- Menu is not opened on arrow click HOT 3
- Changelog? HOT 3
- Keyboard Shortcut for Selecting a Focused item not working/present HOT 1
- Full height selection HOT 1
- Component is not compatible with React 15
- Delay on searching when scrolling to bottom
- [email protected] has incorrect peer dependency react@>= 15 < 16.3 HOT 2
- Usage with redux forms: Value error on multiple selection
- fullWidth property?
- Upgrade to material-ui v3.9.0 HOT 2
- Blank screen HOT 1
- Several Issues found
- Name attribute not showing up in DOM
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 material-ui-superselectfield.