Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRO]: Setting Autocomplete trigger to space disables ability to add spaces #5555

Open
1 task done
ericalli opened this issue Aug 26, 2024 · 0 comments
Open
1 task done
Labels
Category: Pro The issue or pull request is related to the pro packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@ericalli
Copy link

ericalli commented Aug 26, 2024

Affected Packages

extension-ai

Version(s)

2.11.1

Description of the Bug

Setting the autocompletionOptions to trigger: ' ' currently disables the ability to add spaces in the editor entirely.

Browser Used

Chrome

Code Example (Preferred)

const editor = useEditor({
  extensions: [
    Ai.configure({
      appId: '',
      token: '',
      autocompletion: true,
      autocompletionOptions: {
        trigger: ' '
      }
    })
  ]
})

Expected Behavior

The ability to set space as the autocomplete trigger, a space should be added and suggestions generated. Pressing space again should accept the suggested completion.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@ericalli ericalli added Category: Pro The issue or pull request is related to the pro packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Pro The issue or pull request is related to the pro packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Triage open
Development

No branches or pull requests

4 participants
@ericalli and others