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

First md-on-select not called after load #3169

Closed
jo-me opened this issue Jun 8, 2015 · 4 comments
Closed

First md-on-select not called after load #3169

jo-me opened this issue Jun 8, 2015 · 4 comments

Comments

@jo-me
Copy link

jo-me commented Jun 8, 2015

As described in a comment in #2730, the md-on-select is not called when the tabs are initially displayed.

Can be reproduced in my plnkr that i created for #2730 : http://plnkr.co/edit/DorMcJAmkuFpVG6wTBaj?p=preview

The "Last log" row at the bottom should display "Last Log: One selected" because the first tab is automatically selected.

It may be related to the tabs being created by ng-repeat.

@jo-me
Copy link
Author

jo-me commented Jun 15, 2015

The event is still not coming if the tabs are created asynchronously.

http://plnkr.co/edit/qpAPFBFOPBs6pnaiR1nH?p=preview

Probably related to #3264 .

@e-oz
Copy link
Contributor

e-oz commented Jun 15, 2015

Please create separate event, don't fire on-select when user doesn't select anything.

@jo-me
Copy link
Author

jo-me commented Jun 15, 2015

If a tab is automatically selected, some event is necessaray to allow dynamically creating/loading the tab content.

@ramirezd42
Copy link

This is still an issue for me. Angular Material does the job of changing the state of my tabs by selecting the first one. I don't see why that state change should be any different than one initiated by a user.

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

No branches or pull requests

3 participants