Skip to content
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

using disable-with on a link should be detectable with css #477

Open
lastobelus opened this issue Sep 11, 2016 · 2 comments
Open

using disable-with on a link should be detectable with css #477

lastobelus opened this issue Sep 11, 2016 · 2 comments

Comments

@lastobelus
Copy link

lastobelus commented Sep 11, 2016

As far as I can tell, the disable-with functionality for anchor tags provides no way to style a disabled anchor tag with css.

There are a couple of possible options:

  1. set/unset disabled="disabled" attribute.
  2. if data-disable-with-class is set use it to addClass/removeClass

would a pull request for this be accepted, and if so which option would be preferred?

@ggarek
Copy link

ggarek commented Feb 17, 2017

Just spotted the same problem here. I would like to use data-disable-with-class to style disabled link without using provided ujs-ajax hooks.
@lastobelus 👍 for that feature.

@gapnav
Copy link

gapnav commented Mar 15, 2017

Hey guys.
Have you found any solution? I have same problem, and don't want to add duct-taped javascript to onclick.

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

No branches or pull requests

3 participants