[MGNLUI-7884] RichText fields are editable tho the "Save changes" button is disabled Created: 27/Feb/23 Updated: 09/May/23 Resolved: 16/Mar/23 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.28 |
| Fix Version/s: | 6.3.0, 6.2.30 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Carlos Cantalapiedra | Assignee: | Quach Hao Thien |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Analysis, VN-Testing | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | 7h | Time Spent: | 7h |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
|||||||||||||||||||||||||
| Issue Links: |
|
|||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||
| 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)
|
|||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
|||||||||||||||||||||||||
| Release notes required: |
Yes
|
|||||||||||||||||||||||||
| Date of First Response: | ||||||||||||||||||||||||||
| Epic Link: | Nucleus Quality Maintenance | |||||||||||||||||||||||||
| Sprint: | Nucleus 32 | |||||||||||||||||||||||||
| Story Points: | 1 | |||||||||||||||||||||||||
| Team: | ||||||||||||||||||||||||||
| Work Started: | ||||||||||||||||||||||||||
| Description |
Steps to reproduce
Expected resultsThe richText field should be readonly Actual resultsThe richText field can be edited tho it cannot be saved because the "Save changes" button is disabled WorkaroundN/A Development notesLooks similar to https://jira.magnolia-cms.com/browse/MGNLUI-7270 |
| Comments |
| Comment by Vishal Bargode [ 02/Mar/23 ] |
|
Hi Team, Any estimated version or date? For this bug. |
| Comment by Quach Hao Thien [ 03/Mar/23 ] |
DiscoveryAs stated in this discovery https://jira.magnolia-cms.com/browse/MGNLUI-7270?focusedId=325630&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-325630, there isn't a direct way to setEnable(false) to a any child component of a disabled parent component. So, for this issue there are 2 proposal:
.v-ckeditortextfield.v-disabled * {
pointer-events: none;
cursor: none;
}
@Override public void attach() { super.attach(); this.setEnabled(isParentEnabled()); this.setReadOnly(!isParentEnabled()); this.setProtectedBody(!isParentEnabled()); } private boolean isParentEnabled() { HasComponents parent = this.getParent(); boolean isEnable = true; while(parent != null) { try { isEnable = isEnable && parent.getParent().isEnabled(); parent = parent.getParent(); } catch (Exception e) { parent = null; } } return isEnable; }
|
| Comment by Vishal Bargode [ 09/Mar/23 ] |
|
Hi Team, Is above solution we need to implement in our code ? OR It will be part of Magnolia Release ? If Yes, then can we have release version / date ? |