-
Notifications
You must be signed in to change notification settings - Fork 81
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
<a><button></a> broken #1
Comments
Thanks, I'll look into this. In the meantime can you update your example to include You can use the ``` tag as well to format blocks of code.
|
Also you would never write Something like this,
|
Thanks for that, I have commented the links so you can see the code. The first version, which is a bit ugly now I come to think of it -I could use the button classes in the I also had a problem with multiple forms on one page, but I decided that I didn't really need that and changed the code to be one form. |
A few things, first thanks for clarifying the example code with comments. Next, there is a bug with the current directive and multiple forms. I've fixed this and will be updating the code soon. An easy fix in the meantime, like you did, is to just use a single form. Lastly, the fact this directive effects the functionality of buttons and links within it is odd (as you noted the link works fine when the directive is removed.). This needs more investigation. However, you really should fix the syntax errors - its not proper to put a A few suggestions, I noticed you're using the bootstrap class
In addition, you could apply the ng-show attr to the link itself, there's really no need to wrap it with a span
This would clean up your code a bit. Hope this helps! |
It does thanks, I'm more of a backend person. |
@derbexuk check out https://github.com/facultymatt/angular-unsavedChanges/tree/develop for updates that fix multiple form issues. Thanks! |
Hi Matt,
thanks for the nice directive, generally it's working well.
I have an issue though where buttons in links inside forms are disabled. Not a big deal I can just use text links.
So :
<span ng-hide="user.has_file"> <a href="/cv_upload"> <button class="btn">Upload Your CV</button></span></a>
fails to fire on the button press but :
<span ng-hide="user.has_file"> <a href="/cv_upload">Upload Your CV</span></a>
works fine.
The text was updated successfully, but these errors were encountered: