When a group is deleted from the "nuxeo-group-management" element, the "group" value is overwritten by the empty response of the DELETE call
<nuxeo-resource id="editRequest" path="group/[[groupname]]" response="{{group}}" headers='{"fetch.group": "memberUsers,memberGroups"}'></nuxeo-resource>
_deleteGroup() { this.$.deleteGroupDialog.toggle(); this.$.editRequest.data = this.group; this.$.editRequest.remove().then(() => { this.dispatchEvent(new CustomEvent('nuxeo-group-deleted', { composed: true, bubbles: true, detail: this.group, })); this._goHome(); }); }
If someone want to use the value set in the "detail" field of the CustomEvent, only an empty value will be available.
Expected behavior: the custom event is sent with the current group set in the "detail" field
- Is referenced in