Click
  1. Click
  2. CLK-164

CheckBox is still active when you set it to readonly.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Since HTML doesn't allow you to set a checkbox to readonly a work around is required.

      A quick fix would be to extend the setReadonly method to call the following when readonly is set to true:

      setAttribute("onclick", "return false;"); which stops the user changing the value.

      A bigger fix would be to set the field to disabled and to include a hidden field with the real value.

        Activity

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            David Frizelle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development