Bug: AutoFocusPlugin doesn't work with many editors
See original GitHub issueWhen having many editors, using AutoFocusPlugin
to control which editor receives focus doesn’t seem to work
Lexical version: 0.2.9
Steps To Reproduce
- Have 2+ editors with and create a boolean autoFocus prop that conditionally renders the
AutoFocusPlugin
- conditionally active autoFocus on one of the editors
- See that it doesn’t have focus
Link to code example: https://codesandbox.io/s/many-lexical-autofocus-ype4po
The current behavior
No editor, or sometimes the last one, receives focus
The expected behavior
The editor with autoFocus={true}
should receive focus
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Add an autoFocus property · Issue #785 · facebook/draft-js
I'm proposing this because I'd like to focus the text editor, but I can't use (or don't know how) the focus method. My...
Read more >In SlateJS, how to change focus to specific editor when ...
I've tried to RTFM but I legitiamtely cannot find anything about managing focus aside from that plugins page. I've tried adding a focusOnRender ......
Read more >Sony A7iii Face Detection Not Available - Auto Focus Fix
How to turn on and use Face Detection autofocus frame display on the Sony A7iii camera for video recording. There are 5 main...
Read more >$12 AutoFocus For Blackmagic Cameras Using Your iPhone!
Get 15% Off SoundStripe: https://geni.us/SoundStripeMusicUse Code "initialfocus"Download Focus Puller App: ...
Read more >Fix Out-of-Focus Footage With This Simple Tip - PremiumBeat
Work around slightly out-of-focus footage with this simple DaVinci Resolve quick tip.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed with https://github.com/facebook/lexical/pull/2282.
@trueadm Hmmmm… probably something on my side then. Sorry about that, will keep digging and open another issue if I can repro