Comments (4)
Thanks for filing this. Would it be possible to prevent the Radix UI focus behavior? e.g.: radix-ui/primitives#915
The thing is, you probably do want the editor to remain focused (instead of the menu), so that the user can start typing and filter results
from blocknote.
Sadly we can't remove the focus trap behavior when using Radix.
Maybe having some sort of freeze
/unfreeze
method like in the side menu would be an acceptable solution?
from blocknote.
Sadly we can't remove the focus trap behavior when using Radix.
Why not? Doesn't the method I linked to work?
Maybe having some sort of freeze/unfreeze method like in the side menu would be an acceptable solution?
If we want to support type-to-filter, then I don't think any solution that removes the focus from the editor is viable
from blocknote.
@clementprevot Whilst working on #652 I noticed it's probably because the Radix Popover uses a Portal. You could try disabling the portal for your popover.
As part of the #652 PR I'll also investigate an issue if you need to keep using portals, and make it easier to integrate Radix / Shadcn
from blocknote.
Related Issues (20)
- Handle Text Alignment when parsing HTML HOT 2
- Handle Images/Tables combined with Text when Parsing HTML HOT 1
- List placeholder shows on top of pasted custom inline element HOT 1
- Global Dragstart events might be interfering with text selection in custom block. HOT 3
- Mantine adding data-mantine-color-scheme to the html tag HOT 1
- :sparkles: Editor API for AI Text Suggestion HOT 2
- Table doesn't save columns width after refresh
- Slash menu scrolls the page to top when triggered first time after loading document.
- Multiple editor instances cause duplicates on drag&drop
- Bug: Cannot add space at the end of a custom block's content HOT 3
- Placeholder customization, to add a new text or data HOT 1
- About the best rerendering strategy HOT 1
- Passing a new theme object causes editor to lose focus HOT 2
- Add custom comment data to my editor block
- Question: How to add/overwrite keyboard shortcuts? HOT 1
- Setting Text Cursor Position
- Slash menu style is distorted on Next.js project HOT 10
- video embedding feature HOT 1
- Possible to create forms using BlockNote Editor Custom Blocks? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blocknote.