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
- observe that the popup is still visible with the Ok and Cancel buttons
Expected behavior: the popup should disappear when the value is added
PS : if you still see the Delete icon among the document actions, do a force refresh
- is cloned by
-
WEBUI-1030 Fix Cancel Button in nuxeo-data-table usage when the slot deleteDocumentAction is disabled
- Resolved