Skip to content

Commit 79541e4

Browse files
committed
fix(EditorMd): 解决页面上有md编辑器时,刷新页面,页面自动滚动到某个位置的问题
1 parent 4fb4ba0 commit 79541e4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) {
310310

311311
editorIns.setSize('auto', '100%');
312312
refreshEditorCursor();
313-
editorIns.setCursor(editorIns.lineCount(), 0);
314313
ctx.emit('afterEditorInit', editorIns);
315314
editorIns.on('change', onChange);
316315
editorIns.on('scroll', onScroll);

packages/devui-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-devui",
3-
"version": "1.6.9",
3+
"version": "1.6.10",
44
"license": "MIT",
55
"description": "DevUI components based on Vite and Vue3",
66
"keywords": [

0 commit comments

Comments
 (0)