-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.0
-
Fix Version/s: 3.0.19
-
Component/s: UI
-
Release Notes Summary:The popup disappears when pushing the Cancel button, even with special configurations.
-
Tags:
-
Backlog priority:600
-
Sprint:UI - 2022-13, UI COOLDOWN - 2022-13, UI - 2023-01
You must use Chrome >= 100 to observe the bug.
Steps to reproduce the bug:
- Define a document type with a multi-string field
- Define the edit layout for this document type and use a nuxeo-data-table element for the multi-string field. For example
<nuxeo-data-table role="widget" items="{{document.properties.city:rues}}" orderable="true" editable="true" name="rues"> <nuxeo-data-table-column name="Rues"> <template> [[item]] </template> </nuxeo-data-table-column> <nuxeo-data-table-form> <template> <nuxeo-input value="{{item}}" label="Rues" type="text" name="rues"></nuxeo-input> </template> </nuxeo-data-table-form> </nuxeo-data-table>
- Go to Designer > Buttons and disable the button deleteDocumentAction. It will add these lines to the -bundle.html file
<!-- Contribution of element 'nuxeo-delete-document-button' for slot 'DOCUMENT_ACTIONS' --> <nuxeo-slot-content name="deleteDocumentAction" slot="DOCUMENT_ACTIONS" order="15" priority="1" disabled> <template> <nuxeo-delete-document-button document="[[document]]"></nuxeo-delete-document-button> </template> </nuxeo-slot-content>
- deploy the project (you can use the attached jar WEBUI-1005.jar
to ease the reproduction)
- as a non admin, log in to Nuxeo and navigate to your personal workspace
- create a document of this new type
- edit the document
- add a value and validate with OK
- Press the cancel button
Expected behavior: the popup should disappear when the cancel is pressed
Actual behaviour: the pop is hung and not responsive
- clones
-
ELEMENTS-1565 Fix OK Button in nuxeo-data-table usage when the slot deleteDocumentAction is disabled
-
- Resolved
-