From cb68a80309431871d44d9a5cfe0180bfbd4525f3 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 19 Dec 2021 14:28:14 +0100 Subject: [PATCH] editor: data loss when leaving the editor's focus with no modifications --- CHANGELOG.md | 5 +++++ package.json | 2 +- src/client/ui/ui-inspector-field.js | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e7cf1e7..b06f3c8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.13.1 + +- bug fixes + - editor: data loss when leaving the editor's focus with no modifications + ## 1.13.0 - bug fixes diff --git a/package.json b/package.json index aa4c8772..11eac646 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.13.0", + "version": "1.13.1", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" diff --git a/src/client/ui/ui-inspector-field.js b/src/client/ui/ui-inspector-field.js index 7bff0cf0..c39bc96a 100644 --- a/src/client/ui/ui-inspector-field.js +++ b/src/client/ui/ui-inspector-field.js @@ -202,10 +202,10 @@ class UiInspectorField extends UiWidget { editor.setHighlightActiveLine(false) editor.setHighlightGutterLine(false) editor.selection.setRange({start:0,end:0}) + input.value = editor.getValue() + this.parent.focusedInput = input if (editor.dirty) { editor.dirty = false - input.value = editor.getValue() - this.parent.focusedInput = input this.parent.onChange() }