-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 can't open. #4237
Comments
The console shows no error. |
@mbrookes I use |
how did you solve this issue? I have having the same problem |
Had the same problem, resolved it by installing |
it doesn't work for me. i tried everything.. on setting showImmediately = {true} the menu shows but on click on any option, nothing works. and without showImmediately, on clicking the select field, nothing works.. |
try it @subhamagr |
import React, { Component } from 'react';
import { MenuItem , SelectField } from 'material-ui'
import injectTapEventPlugin from "react-tap-event-plugin";
injectTapEventPlugin();
class MySelectField extends Component {
constructor (props) {
super(props);
this._handleChange = this._handleChange.bind(this);
this.state = {
value: 1
}
}
_handleChange (event, target, value) {
console.log(event, target, value);
this.setState({ value })
}
render () {
return (
<SelectField value={this.state.value} onChange={this._handleChange}>
<MenuItem value={1} primaryText="Never" />
<MenuItem value={2} primaryText="Every Night" />
<MenuItem value={3} primaryText="Weeknights" />
<MenuItem value={4} primaryText="Weekends" />
<MenuItem value={5} primaryText="Weekly" />
</SelectField>
)
}
} Nothing works at all. |
Sorry, I don't know.I solved it by this this way.Maybe you can @mbrookes. @subhamagr But I know your misery because I have spent a lot of time on it. |
yes i am stuck on it since 2 days! the click event doesn't fire at all. I don't know what to do. Not only this, the DropDown, PopOver and all nothing works! |
Closing as this is not a Material-UI issue. @subhamagr Please use gitter / SO if you're still having problems after installing |
The solution for me was to upgrade React. I upgraded to |
@subhamagr did u fix it ? |
@safouman yes, I solved it by upgrading react version to |
Problem description
I can't open the SelectField,that is it is not useful to click SelectField.But My code is just referred to http://www.material-ui.com/#/components/select-field
Could you give me some suggestions?
Steps to reproduce
1.I write a
div
that contains aSelectField
The default value of SelectField is "1"
2.The Page shows as follows:
Versions
The text was updated successfully, but these errors were encountered: