also apply live-preview if an unsaved style was disabled
This commit is contained in:
parent
21b209421a
commit
5efda1d00d
|
@ -10,7 +10,7 @@ function createLivePreview(preprocess) {
|
|||
const errorContainer = $('#preview-errors');
|
||||
|
||||
prefs.subscribe(['editor.livePreview'], (key, value) => {
|
||||
if (value && data && data.id && data.enabled) {
|
||||
if (value && data && data.id && (data.enabled || editor.dirty.has('enabled'))) {
|
||||
previewer = createPreviewer();
|
||||
previewer.update(data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user