You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Aleksandra (JIRA)" <ji...@apache.org> on 2018/01/17 14:09:01 UTC

[jira] [Created] (WICKET-6521) setEnable(false) on anchor should add disabled="disabled" in HTML

Aleksandra created WICKET-6521:
----------------------------------

             Summary: setEnable(false) on anchor should add disabled="disabled" in HTML
                 Key: WICKET-6521
                 URL: https://issues.apache.org/jira/browse/WICKET-6521
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 8.0.0-M8
            Reporter: Aleksandra


When you setEnable(false) on a <button> then Wicket puts disabled="disabled" attribute in the markup.

Unfortunately this is not the case with anchor tag - setEnable(false) on <a> does nothing.

I know that not all browsers handle this attribute properly, but if you set it, I could at least match on this attribute in CSS like this:
{code:java}
a[disabled] {
   pointer-events: none;
   cursor: default;
}{code}
and therefore disable it manually



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)