Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdBottomSheet: TypeError: Cannot read property 'runner' of undefined #4388

Closed
topherfangio opened this issue Aug 31, 2015 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@topherfangio
Copy link
Contributor

There is an issue on the docs site which can throw the above error and break the site's formatting.

Steps to reproduce:

  1. Open the bottom sheet demo
  2. Click the "Show as Grid" button
  3. Click the "Twitter" icon/button
  4. VERY QUICKLY click another demo on the left before the toast starts to disappears

The error will be thrown and there will be two <md-content> tags on the page, the bottom one will be empty and cause 50% of the page to be empty (due to PR #4372).

screen shot 2015-08-31 at 11 03 41 am

@ThomasBurleson
Copy link
Contributor

@matsko - how do we cancel an animation runner in $destory() ? Actually I think this may be a bug in ngAnimate... ?

@devversion
Copy link
Member

This will be easy to fix after we have #6684 (this will also fix the toast overlaps; and will fix multiple interim elements running at same time), because then the interim elements won't get removed directly if hiding. They will be removed from stack, after their animation is done.

Then we can use $mdBottomsheet.destroy() and it will find an interim element (see here).

@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants