Tabs/Tab not working on initial load
See original GitHub issueI have created a react component using Tabs, It is not working on initial load but works once i reload the page.
My render function is as below
<Tabs className='tab-demo z-depth-1'>
<Tab title="Components" active>
<form className="col s12">
<div className="row">
<div className="input-field col s5">
<input id="file_search" type="text" className="validate" />
<label htmlFor="file_search">Search</label>
</div>
<div style={styles.restorecomp}>
<span className="btn indigo darken-4 selectdrop" onClick={this.open}><i className="material-icons left">restore</i> Restore a Component</span>
<span className="btn indigo darken-4 selectdrop" onClick={this.save} ><i className="material-icons left">save</i> Save</span>
</div>
</div>
</form>
<table className="highlight centered" id="files">
<thead>
<tr>
<th data-field="comp"> Name</th>
<th data-field="type">Type</th>
<th data-field="version">Version</th>
<th data-field="user">Data Source</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</Tab>
<Tab title="Data Sources"><form className="col s12">
<div className="row">
<div className="input-field col s5">
<input id="ds_search" type="text" className="validate" />
<label htmlFor="ds_search">Search</label>
</div>
<div style={styles.restorecomp}>
<span className="btn indigo darken-4 selectdrop" onClick={this.dsopen}><i className="material-icons left">restore</i> Restore DataSource</span>
<span className="btn indigo darken-4 selectdrop" onClick={this.save}><i className="material-icons left">save</i> Save</span>
</div>
</div>
</form>
<table className="highlight centered" id="ds">
<thead>
<tr>
<th data-field="comp"> Alias</th>
<th data-field="tname"> Name</th>
<th data-field="connection">Connection</th>
<th data-field="type">Type</th>
<th data-field="version">Version</th>
</tr>
</thead>
<tbody>
</tbody>
</table></Tab>
<Tab title="Files"><form className="col s12">
<div className="row">
<div className="input-field col s5">
<input id="fv_search" type="text" className="validate" />
<label htmlFor="fv_search">Search</label>
</div>
<div style={styles.restorecomp}>
<span className="btn indigo darken-4 selectdrop" onClick={this.fileopen}><i className="material-icons left">restore</i> Restore a File</span>
<span className="btn indigo darken-4 selectdrop" onClick={this.save}><i className="material-icons left">save</i> Save</span>
</div>
</div>
</form>
<table className="highlight centered" id="fv">
<thead>
<tr>
<th data-field="comp">Name</th>
<th data-field="type">Path</th>
<th data-field="version">Version</th>
</tr>
</thead>
<tbody>
</tbody>
</table></Tab>
</Tabs>
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Tabs/Tab not working on initial load in react-materialize
I have created a react component using Tabs, It is not working on initial load but works once i reload the page.
Read more >react-tabs - npm
Start using react-tabs in your project by running `npm i react-tabs`. ... react-tabs does not include any style loading by default.
Read more >Tab components - React-Bootstrap
Tabs is a higher-level component for quickly creating a Nav matched with a set of TabPane s. ... as this causes both usability...
Read more >Content of all tabs visible on page load
I notice that when the page initially loads, content of all tabs are visible for a few ... This is wrong. after click...
Read more >JavaScript - Bootstrap
For the sake of this demonstration, we are using data-loading-text and $().button('loading') , but that's not the only state you can use. See...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

#201 Sorry for the delay 0.17.7 Fixes this issue
Same problem here. Tabs worked fine on
0.15.2and are now broken on0.17.6.