We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d29175 commit bf84c59Copy full SHA for bf84c59
src/components/Select2.js
@@ -52,11 +52,11 @@ export default class Select2 extends Component {
52
}
53
54
render() {
55
- const { data, events, ...params } = this.props;
+ const { data, ...params } = this.props;
56
57
return (
58
<select {...params}>
59
- {this.props.data.map((item, k) => {
+ {data.map((item, k) => {
60
if (typeof item === 'string' ||
61
((!!item && typeof item === 'object') && Object.prototype.toString.call(item) === '[object String]')) {
62
return (<option key={'option-' + k} value={item}>{item}</option>);
0 commit comments