U4-11571 - True/false checkbox (umb-toggle) triggers a document save

Created by Arnold Visser 14 Aug 2018, 09:37:29 Updated by Chris Houston 27 Aug 2018, 15:41:05

Is duplicated by: U4-11585

When using the checkbox datatype (which is an umb-toggle since 7.11) it triggers a save of the document.

Environment is upgraded from 7.9 to 7.12 (on Umbraco Cloud); We skipped 7.11, so I am not sure if this is already present in that version.


Sebastiaan Janssen 14 Aug 2018, 10:38:12

I just tried this out on a few different sites and it's definitely not triggering a save. Maybe you need to do some updating of the CDF version and clear some browser caches?

If you have a way to reproduce then we'll happily have another look but at the moment there's not much we can do. :)

Sebastiaan Janssen 14 Aug 2018, 10:42:28

And just as I say that, I turn debug off in web.config and I can repro.

Sebastiaan Janssen 14 Aug 2018, 10:46:11

And also with debug="true" now. Weird! Alright, having a look!

Sebastiaan Janssen 14 Aug 2018, 12:26:56

So the workaround for this one:

Go into: ~/Umbraco/Views/components/buttons/umb-toggle.html Add type="button" to the <button tag Update the version number in ~/Config/ClientDependency.config (just make it 1 lower or higher)

Once you save ClientDependency.config your site should recycle and a simple browser refresh should be enough for the change to kick in. In rare cases you might need to do a hard refresh.

This is fixed for 7.12.1 in commit https://github.com/umbraco/Umbraco-CMS/commit/6c0d14e0f408b37ac3ffd6c7e750799517763996

Chris Houston 27 Aug 2018, 15:41:05

FYI for anyone who comes across this issue, I came across this issue when editing a data type, toggling the "hide label" made the data type save. @sebastiaan 's work around fixes this issue, thanks :)

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.12.0

Due in version: 7.12.1


Story Points: