mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
fix: skip the autocompletion debounce when the document shrank past the captured position (#28824)
This commit is contained in:
parent
d1c207d091
commit
302ffc8b7e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue