Skip to content

bug(md-tooltip): maximum call stack exceeded when tooltip-position is not "below" - RC6 #1157

@ivoviz

Description

@ivoviz

Angular @ 2.0.0-rc.6
Material @ 2.0.0-alpha.7-12

When tooltip-position is set to something else than default (eg. after) the site completely breaks with Maximum call stack size exceeded exception.

Since there is no base plunker with these versions I won't be posting one. The error is easily reproducible though: change https://github.com/angular/material2/blob/master/src/demo-app/tooltip/tooltip-demo.ts#L12 from below to after and run the demo app.

Edit: Haven't really looked at the code in depth, but it seems like this line causes the error. It creates multiple overlayRef for a single tooltip. Removing it makes the component work perfectly. Although it didn't throw before rc.6, it still created way too many overlayRef.

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions