[MGNLFE-178] Call change detector when properties are updated programmatically Created: 22/Feb/22  Updated: 28/Jun/22  Resolved: 13/Apr/22

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: Angular Renderer
Affects Version/s: None
Fix Version/s: 1.2.2

Type: Improvement Priority: Critical
Reporter: Canh Nguyen Assignee: Robert Šiška
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: SPA Editor Backlog
Sprint: DevX 7, DevX 8
Story Points: 3
Team: DeveloperX

 Description   

Symptom: Sometimes the green bars show up, sometimes they do not.

This is a finding from D&G, sometime the parent change detection off, angular wont pick up the internal change to the property openComment as it has been changed programmatically.

Development note

Call this.changeDetectorRef.detectChanges() after properties are changed programmatically in EditableArea (maybe we should check for EditablePage and EditableComponent as well).


Generated at Mon Feb 12 05:45:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.