Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

[m-tab-bar] Errors after switching #312

Closed
ghost opened this issue Jun 27, 2019 · 2 comments · Fixed by #313
Closed

[m-tab-bar] Errors after switching #312

ghost opened this issue Jun 27, 2019 · 2 comments · Fixed by #313
Assignees

Comments

@ghost
Copy link

ghost commented Jun 27, 2019

Describe the bug
Console errors with m-tab-bar, possibly preventing from getting events from it.

To Reproduce
Reproducible on Codepen: https://codepen.io/antivitla/pen/qzVRwY
Try to switch tabs, check appearing console errors including 'Cannot read property 'getScrollPosition' of null"' and others inside material-components.

Screenshots
Screen from codepen:
Desktop-screenshot (1)

Better errors when trying to import by module, this way error is happening inside MDCTabBar component code:
Desktop-screenshot

Desktop (please complete the following information):

  • Windows 10, Chrome latest
@ghost ghost changed the title m-tab-bar [m-tab-bar] Errors after switching Jun 27, 2019
@tychenjiajun tychenjiajun self-assigned this Jun 27, 2019
@tychenjiajun
Copy link
Contributor

Add a scroller and it will be fine https://codepen.io/anon/pen/ZNNqWw
I was too lazy to update the doc. 😂 But I'm also considering adding a built-in scroller to make it compatible with the 0.x.y versions.

@ghost
Copy link
Author

ghost commented Jun 27, 2019

Ah, great, thanks! :))

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant