mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: scratchpad: handle duplicate click event
This commit is contained in:
1 parent
f030c32813
commit
e964eec099
3 files changed
+11
-3
No files matched your search
@@ -26,7 +26,7 @@ export default connect((state: any) => ({
|
||||
});
|
||||
},
|
||||
}))(class MonacoEditor extends React.PureComponent<ScratchpadOptions> {
|
||||
disposable = [];
|
||||
disposable: monaco.IDisposable[] = [];
|
||||
__prevent_trigger_change_event = false;
|
||||
model: monaco.editor.ITextModel;
|
||||
editor: monaco.editor.IStandaloneCodeEditor;
|
||||
@@ -78,7 +78,7 @@ export default connect((state: any) => ({
|
||||
[
|
||||
{
|
||||
range: model.getFullModelRange(),
|
||||
text: value,
|
||||
text: value!,
|
||||
},
|
||||
],
|
||||
() => null,
|
||||
|
||||
Reference in new issue
Block a user