I am developing an application using React and Meteor. I have tried multiple syntax variations of the select dropdown but it's not visible.
The code is written in a jsx page. Below is my code snippet. Any help in identifying the issue is appreciated. I have tried viewing the output on Chrome and Safari, but the select dropdown is not showing up in both.
When I inspected using browser tools, the html tag select was present in source but it was not rendering on screen.
import React, { Component } from 'react';
export default class New extends Component {
render() {
return (
<div className="row">
<form className="col s12">
<h3>Add a new player</h3>
<div className="row">
<div className="input-field col s6">
<input placeholder="Name" ref="name" type="text"
className="validate" />
</div>
<div className="input-field col s6">
<input placeholder="Team" ref="team" type="text"
className="validate" />
</div>
</div>
<div className="row">
<div className="input-field col s6">
<h5>Ball Manipulation</h5>
<select className="browser-default"
ref="ballManipuation">
<option value="0">0 - Hasn't demonstrated skills</option>
<option value="1">1 - Needs improvement</option>
<option value="2">2 - Skill acquired</option>
<option value="3">3 - Great skills/could teach</option>
</select>
</div>
<div className="input-field col s6">
<h5>Kicking Abilities</h5>
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
</div>
</div>
<div className="row">
<div className="input-field col s6">
<textarea placeholder="Notes" ref="notes" type="text"
className="materialize-textarea" />
</div>
<div className="input-field col s6">
<button className="btn waves-effect waves-light" type="submit"
name="action">Submit
<i className="material-icons right">send</i>
</button>
</div>
</div>
</form>
</div>
)
}
}