[MGNLUI-6967] ReadOnly jcrMultiValueField allows adding/removing/reordering values Created: 02/Dec/21  Updated: 02/Dec/21

Status: Open
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2.13
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Chris Jennings Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MGNLUI-6967.png     Zip Archive headless-workflow-example.zip    
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

 Description   

Steps to reproduce

  1. Create a dialog that incorporates a jcrMultiValueField with readOnly=true
  2. View an item using this dialog

Expected results

  1. A readOnly field should not offer the add button, the remove (dustbin) icon or the reordering arrows.

Actual results

# All three of the above edit controls are present and can be used. Making the inner fields readOnly prevents them being altered changed but they can be removed or reordered and new, empty values can be added.

Development notes

See attached light module for an example. Items can be created as normal and the included "Preview" action can be used to see the "readOnly" version of the editor subApp.


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