@financial-times/n-myft-ui 28.2.6 → 28.2.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -257,7 +257,6 @@ function FormElement (createList, showPublicToggle, attachDescription, onListCre
|
|
257
257
|
triggerCreateListEvent(contentId, createdList.uuid);
|
258
258
|
triggerAddToListEvent(contentId, createdList.uuid);
|
259
259
|
positionOverlay(createListOverlay.wrapper);
|
260
|
-
triggerCancelEvent();
|
261
260
|
|
262
261
|
if (createdList.isShareable) {
|
263
262
|
createListOverlay.close();
|
@@ -272,6 +271,7 @@ function FormElement (createList, showPublicToggle, attachDescription, onListCre
|
|
272
271
|
function handleCancelClick (event) {
|
273
272
|
event.preventDefault();
|
274
273
|
event.stopPropagation();
|
274
|
+
triggerCancelEvent();
|
275
275
|
formElement.remove();
|
276
276
|
if (!lists.length) attachDescription();
|
277
277
|
onCancel();
|