From 97b465ce9ac90992cec90261645802fb098c022e Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 17 Dec 2021 17:27:35 -0500 Subject: [PATCH] close the correct editor on cancel --- app/views/link/components/editor.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/link/components/editor.pug b/app/views/link/components/editor.pug index 47b2c31..343d8d9 100644 --- a/app/views/link/components/editor.pug +++ b/app/views/link/components/editor.pug @@ -14,7 +14,7 @@ mixin renderLinkEditor (editorId, link) input(id="href", name="href", type="text", placeholder="Enter link URL", value= link ? link.href : undefined).uk-input div(uk-grid).uk-grid-small .uk-width-auto - button(type="button", uk-toggle={ target: '#link-editor' }).uk-button.dtp-button-default Cancel + button(type="button", uk-toggle={ target: editorId }).uk-button.dtp-button-default Cancel .uk-width-auto button(type="submit").uk-button.dtp-button-primary +renderButtonIcon('fa-plus', link ? 'Update link' : 'Add link') \ No newline at end of file