-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SelectField/DropDownMenu not working #1011
Comments
Try putting this in your build:
Make sure that function is ran before you render anything to page. |
Are these drop downs coming up when you click them? For the SelectField, do you have a value prop and an onChange handler? |
Nope, drop-downs do not show up on click. I've tried attaching an onClick handler on the component itself and it still doesn't work. If I wrap the component with a div and put an onClick on the div, the event triggers just fine. And yes, I do have a value prop and onChange handler and it still isn't working. |
@solchea Are you getting any errors in the console? |
I can confirm, dropdown is showing up for me but |
I fix my problem by passing a |
I'm having the same problem in my project with both SelectFields and DropDownMenu. They render, and on render flash the option values, then the are not selectable at all. @solchea Did you find a solution? |
Same here. Clicking doesn't open the dropdown. |
Also not working for me when compiled into my project |
importing injectTapEventPlugin worked for me: import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin(); but I have to say, the amount of setup required in order to do anything of use with material-ui is pretty burdensome. Things that are required in order for a component to work should come with that component automatically. material-ui requires some pretty elaborate rituals, especially if you're using es6 syntax. |
forgot to follow up but just the requiring of injecttapevent worked for me On Friday, September 18, 2015, Lev Brie [email protected] wrote:
|
This worked: var injectTapEventPlugin = require('react-tap-event-plugin'); injectTapEventPlugin(); |
I'm having this same problem after upgrading to |
I'm having this problem as well, with both floating text (large, gray, overlapping) and being unclickable. |
I still cannot get a
For sanity, when setting the For reference, I tried this with |
@MarkLeMerise Can you try with the latest master branch? SelectField and DropDownMenu now use Popover. maybe that fixes it? |
@gravitypersists are you setting |
Ah. I hadn't gotten to that part yet, I just assumed it was broken. I would still consider this an issue, though, as all other controlled components work fine without the I also needed to prepend a blank menuItem to avoid overlap on first render. Finally, I don't understand why the docs don't include the two most important pieces of information: the format the component expect Is this by, somewhat flawed, design? Or is it just missing? I don't mind submitting a PR clearing it up, it just seems too obvious to go missing in documentation... |
Same issue here: |
@gravitypersists The docs was missing a lot of information... This should be fixed with #2565. |
@oliviertassinari After upgrading to 0.14.0, I get lots of error when using |
@scarletsky It IS a warning, only in form of an error to contain the stack trace. it won't halt execution. it's just red. |
@alitaheri Oh, I see... What I want is to follow the warning, use composability instead of menuItems. But I've check the docs, I can not get any useful info to migrate, because the |
@scarletsky Yes SelectField is still old. I'm working on it to migrate. the 0.14.1 will be brand new 😁 |
@alitaheri OK, thanks for the information. Hoping 0.14.1 release ! 😃 |
👍 making |
For people that use redux-devtools + hot reloading, I had to |
@Eyesonly88 That's not convenient. Can we do something about it? |
@oliviertassinari I'm not quite sure as I don't know why |
For what it's worth: there is a bug in Since |
I'm affected by this bug and spent several hours trying to figure out what was going wrong. May I suggest to issue a warning in the console when a dependency such as the tap event plugin is not met? |
You can't imagine how many hours were spent on this bug :/. That's a very good idea. I'm gonna try. I'm tired of the noise it's adding to our issue reporting tool. |
+1 I am seeing this issue. In rare instances, the SelectField dropdown works when I refresh. I am not sure why. I have also tried these:
|
I got the same issue as @austinmao any solutions? |
solved this by adding these codes before any imports. I suggest put it in the 1st line of app.js
|
I think that we can close this issue now. |
Agree. |
@alitaheri Use the latest 0.15.0-beta.2 still not work :( |
@mbrookes this issue still existence at the version 0.14.4 . I still cannot get a to display on click。 Edit I fixed it , by : and add var injectTapEventPlugin = require("react-tap-event-plugin"); in my components。 thank you。..... |
I assume the injectTapEventPlugin() call is a bug workaround ? |
Work for me using react-tap-event-plugin |
same issue for me and this workaround
worked for me, but can someone explain why this works? |
Having an odd problem where the SelectField isn't working - it renders, but isn't clickable. Other form fields work just fine. No events for the DropDownMenu seem to be firing. Anyone else have this problem or know what could be causing this? I've run the examples and they work fine locally, so the only difference I know of is my build process but I can't imagine that would be causing this problem. And here's the code I'm using:
The text was updated successfully, but these errors were encountered: