mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-01 19:50:41 +02:00
fix: skip the autocompletion debounce when the document shrank past the captured position (#28824)
This commit is contained in:
@@ -86,6 +86,7 @@ export const AIAutocompletion = Extension.create({
|
||||
|
||||
const newState = view.state;
|
||||
const newSelection = newState.selection;
|
||||
if (currentPos >= newState.doc.content.size) return false;
|
||||
const newNode = newState.doc.nodeAt(currentPos);
|
||||
|
||||
// Check if the node still exists and is still a paragraph
|
||||
|
||||
Reference in New Issue
Block a user