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

Disabling keyboard input during form submission #725

Open
hampak opened this issue May 6, 2024 · 0 comments
Open

Disabling keyboard input during form submission #725

hampak opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hampak
Copy link

hampak commented May 6, 2024

Is your feature request related to a problem? Please describe.

Hello, I'm making an app where I have a form and I have two fields - the title and the description.
For the title, I'm using the <form> tag where I can create a loading state and pass it on to the disabled property.
For the description, I'm using the <BlockNoteVioew> tag. However, there isn't a disabled property for the BlockNote editor.

Describe the solution you'd like

I think it'd be useful to create a property (and name it as disabled etc) where we can pass a boolean value which will disable any keyboard inputs while the boolean value is true.

Describe alternatives you've considered

I've tried wrapping the <BlockNoteView> itself in a <input> and <textarea> tag but I couldn't find a way to solve the issue I was having.

Additional context

I'm using

  • NextJS
  • Typescript

Bonus
X

@hampak hampak added the enhancement New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant