-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui-sref not working with ba-close #72
Comments
Here is a snippet:
With this the panel doesn't close when clicking the links. It never did. But as I said before I just added |
Not sure if you just had a typo, but did you try Your current example is working as expected. Adding |
You can test it with this: https://github.com/Seb-/test-for-angular-base-apps |
Note that the example has been stripped too much from my original project, and adding The example still shows that the panel does not auto-close when a link is clicked, which is the opposite of what the doc says. |
Following more testing and all things aside similar, this works:
and this doesn't:
The issue is as soon as the click happens on a child element inside the link. (above example calls ba-close fine but not ui-sref) This was working fine before version 2. With |
@Seb- you're missing the closing |
Sorry I guess I deleted too much while cleaning up, but it doesn't change the issue though, adding it won't work better, and the other link doesn't work either. |
dang, it's never that easy... I'll look into it. |
@Seb- I found the issue. The original fix only fixes the case when the clicked element has the I'll get this fixed and published in the next patch release. |
Thank you, This note in the doc is still wrong though:
|
I tried to upgrade to 2.0, but I have links inside a
ba-panel
that are not working anymore.Clicking the link should open a new page and close the panel, so it had
ba-close
together withui-sref
.This worked fine before but does not work now.
Removing the
ba-close
allows to change page but the panel doesn't close.Leaving the
ba-close
andui-sref
allows to close the panel, but the page does not change.This is written in the doc but I think it's not working at all:
Also if you change this behaviour, it should be written in the migration doc. And then what is the solution if we want to change page and to keep the panel open?
The text was updated successfully, but these errors were encountered: