This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tabs): select/deselect methods will now be called in the proper
scope Closes #2489
- Loading branch information
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not
&
? Isn't this what it's for ?02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using
&
, it was being evaluated in the wrong scope.02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still the wrong scope, though:
#2600
"ctrl" needs to be the tab not md-tabs as it is currently.
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jo-me Resolved this issue this morning, thanks for calling it out.
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fix released? Im still facing the same issue in v0.9.0
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me in the situation with tabs populated with ng-repeat and the ng-repeat iterator used as parameter in the md-on-select expression.
The very first select event is still missing, though.
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alert() below is never fired. Using v0.9.0.
<md-tabs> <md-tab md-on-select="alert('hello world')" label="Tab 1"></md-tab> </md-tabs>
Also, the expression in md-on-select is not evaluated at all. I can replace alert() with "blah blah" and no error will be showed in console.
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jo-me
"and the ng-repeat iterator used as parameter in the md-on-select expression"
Please, could you be more specific? How do you use the iterator as a parameter and why?
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fix in production yet? I have version 1.1.1 and the problem persist.
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have version v1.1.3 and the problem exists as of date :(
02a4af5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug appears to still be present in v1.1.4. I tried working around it by using an
<md-tab-label>
withng-click
on it, as well as on an inner<div>
, but still no dice.