ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: ng-click + ui-sref not working on tabs directive.

Open otruffer opened this issue 11 years ago • 6 comments

Type: bug

Platform: all

Dear Ionic Developers

Working on ionic framework 1.0.0. Love it so far! :-) Now my issues

ng-click and ui-sref do not work on the tab delegate. On most elements the combination of the two change the state and execute the function stated in the ng-click attribute. But on the Tab directive only the ng-click function is triggered, the state does not change!

The second problem which might be related is: I decorated the $state delegate in order to log something in the console on every state change. Now this worked on any ui-sref click but on tab clicks the state.go does not seem to trigger or the decorator did not take effect.

Retry here: http://codepen.io/anon/pen/aOwwKw Click on Home Tab -> no state change is logged in console even though $state.go is decorated. Click on Home Tab/Scientific Fact -> state change is logged. Ok! Click on About Tab -> state change does not happen even though ui-sref attribute on tab element, but ng-click function is triggered.

Cheers!

otruffer avatar Jun 11 '15 09:06 otruffer

It looks like the ng-click fires before the ui-sref does and that the click event isn't propagating through

ClemMakesApps avatar Jun 11 '15 21:06 ClemMakesApps

Greetings @otruffer!

I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.

Thank you for allowing me to assist you.

Ionitron avatar Sep 10 '15 00:09 Ionitron

:+1: This is still an issue. He's provided an adequate description of the issue, and supplied a link. Would you please re-open this issue and provide a solution? Thanks.

benbabics avatar Oct 07 '15 20:10 benbabics

+1

jmsims2 avatar Jan 07 '16 03:01 jmsims2

+1

Matttaylor8910 avatar Jan 24 '18 20:01 Matttaylor8910

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 01 '18 10:09 ionitron-bot[bot]