Fix flash of previous content in kanban codemirror
This commit is contained in:
parent
441b31969c
commit
17be91f640
@ -234,14 +234,14 @@ define([
|
|||||||
setValue: function (val, preserveCursor) {
|
setValue: function (val, preserveCursor) {
|
||||||
if (isBoard) { return; }
|
if (isBoard) { return; }
|
||||||
if (!preserveCursor) {
|
if (!preserveCursor) {
|
||||||
setTimeout(function () {
|
|
||||||
editor.setValue(val || ' ');
|
|
||||||
editor.setValue(val || '');
|
editor.setValue(val || '');
|
||||||
editor.save();
|
editor.save();
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
SFCodeMirror.setValueAndCursor(editor, editor.getValue(), val || '');
|
SFCodeMirror.setValueAndCursor(editor, editor.getValue(), val || '');
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
refresh: function () {
|
||||||
|
editor.refresh();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
editor.on('change', function () {
|
editor.on('change', function () {
|
||||||
@ -421,6 +421,7 @@ define([
|
|||||||
editModal[type].setValue(item[type]);
|
editModal[type].setValue(item[type]);
|
||||||
});
|
});
|
||||||
UI.openCustomModal(editModal.modal);
|
UI.openCustomModal(editModal.modal);
|
||||||
|
editModal.body.refresh();
|
||||||
};
|
};
|
||||||
var getBoardEditModal = function (framework, kanban, id) {
|
var getBoardEditModal = function (framework, kanban, id) {
|
||||||
// Create modal if needed
|
// Create modal if needed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user