[MGNLUI-6056] Readonly checkbox field is clickable Created: 20/Jul/20  Updated: 17/Aug/20  Resolved: 14/Aug/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.2
Fix Version/s: 6.2.3

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: UI framework implementation
Sprint: Maintenance 20
Story Points: 1

 Description   

Checkbox fields with the readOnly attribute set to true are still selectable.

Steps to reproduce

  1. Go to Web resources app and edit the HTML component dialog (/mtk/dialogs/components/html.yaml) with the following snippet
    form:
      tabs:
        - name: tabMain
          fields:
            - name: editHTML
              class: info.magnolia.ui.form.field.definition.CodeFieldDefinition
              language: html
              required: true
            - name: showTitle
              fieldType: checkbox
              label: Show title
              buttonLabel: Select to display title
              readOnly: true
    
    actions:
      commit:
        class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
      cancel:
        class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
    
  2. Move to Pages App and create a new Basic Page
  3. Within that Basic Page, create an HTML component
  4. Check the checkbox field is still selectable

Expected results
Checkbox field is no selectable

Actual results
Checkbox field is selectable

Workaround
N/A

Development notes
N/A
 


Generated at Mon Feb 12 09:32:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.