Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8: Do not save content when opening the content template #7257

Merged

Conversation

kjac
Copy link
Contributor

@kjac kjac commented Dec 2, 2019

Prerequisites

  • I have added steps to test this contribution in the description below

Description

In an effort to make things more accessible, the link that used to open the current content template has been turned into a button (see #7094). As a result, the content editor now saves the current content when you open its template in infinite editing:

edit-template-prompt-save-before

If you're editing invariant content you probably won't even notice it being saved. That's not so good.

This issue is much along the lines of #7185, and the fix is the same: Applying an explicit type to the edit button (type="button"), thus explicitly instructing the browser how to interpret it.

Here's the same operation with this PR applied:

edit-template-prompt-save-after

Copy link
Contributor

@poornimanayar poornimanayar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well @kjac and this was something that was bugging me, unknown to the fact that something I did actually caused it :(

@poornimanayar poornimanayar merged commit 65c53f1 into umbraco:v8/contrib Dec 27, 2019
@poornimanayar
Copy link
Contributor

And merged :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants