Tabs in wrong position, even after using updateTabIndicator()
See original GitHub issueThe button is clicked programmatically using select()
on loading, just after initialisation. The selection is correct but the indicator is off. If I then use updateTabIndicator()
, the indicator moves but not to the right place, as it would if the tab was click.
Here’s the indicator on loading
Here it is once updateTabIndicator() is called
https://gfycat.com/HollowFailingAntelopegroundsquirrel
- Version used: 1.0.0-beta
- Browser Name and version: Google Chrome | 65.0.3325.181 (Official Build) (64-bit) (cohort: Stable)
- Operating System: Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Materialize CSS Tabs Indicator Behavior Within Container
I'm working on an item where I will be displaying a set of related tables set inside tabs. See the fiddle here.
Read more >Tabs - Materialize
Recalculate tab indicator position. This is useful when the indicator position is not correct. instance.updateTabIndicator(); ...
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 FreeTop 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
Top GitHub Comments
this is my solution:
I solved this problem hiding the indicator and styling the active tab with a bottom border instead: