[MGNLUI-4309] CompositeField & NoOpCompositeTransformer & CKEditor field: text disappears upon blur Created: 23/Oct/17  Updated: 27/Oct/17  Resolved: 27/Oct/17

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 5.5.7
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Evzen Fochr
Resolution: Outdated Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLUI-3845 CompositeField & NoOpCompositeTransfo... Closed
causality
relation
supersession
is superseded by MGNLUI-4187 Rich Text Editor - Source View : Does... Closed
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
Date of First Response:
Story Points: 5

 Description   

When a Richtext Field is defined as part of a Composite Field within a Multivalue Field, using as transformers:

info.magnolia.ui.form.field.transformer.composite.NoOpCompositeTransformer
info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodePropertiesTransformer

The Richtext Field disappears from the dialog when it is filled and after that the user is filling other fields and focus is lost (see support ticket to see the steps to follow to reproduce the issue).

In Browser developer tools we can see in 'Network tab' the requests, and it seems to be related to information lost, because we can see a the following info:

"state":
{
	"323": {   "errorMessage":"<div>Text field headline: This&#32;field&#32;is&#32;required&#46;</div>\n"  },
	"341": {   "errorMessage":"<div>Text field headline: This&#32;field&#32;is&#32;required&#46;</div>\n"  },
	"344": {
			"hideErrors":false,
			"errorMessage":null
		}
}, 

Attached you can find the requests using NoOpCompositeTransformer and MultiValueSubChildrenNodePropertiesTransformer, when the error comes up: [^requests_richText_disappears.txt]

And requests using DelegatingCompositeFieldTransformer and DelegatingMultiValueTransformer , no error:
[^requests_richText_NO_disappears.txt]



 Comments   
Comment by Evzen Fochr [ 23/Oct/17 ]

This clones MGNLUI-3845 so 5.5 branch solution can be closed. This is separate ticket for 5.6. For this branch is another possible solution by raising add-on version.

Comment by Federico Grilli [ 27/Oct/17 ]

Raising the version of CKEditor Vaadin add-on fixes the issue.

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