react-router-hash-link icon indicating copy to clipboard operation
react-router-hash-link copied to clipboard

Should be an option to disable focus management

Open Haraldson opened this issue 3 years ago • 1 comments

I’m working on a Table Of Contents feature for EditorJS, and as part of this I’m scrolling to heading blocks in the editor, which have their own event listeners and focus handling. As part of this handling, attempts to control elements controlled by the editor seem to throw errors.

So, while I appreciate the efforts to improve accessibility etc., the focus management can also be in the way in more advanced contexts, and it’d be nice to have a way to disable it.

Thoughts?

Haraldson avatar Oct 04 '21 14:10 Haraldson

I’d be open to this as a boolean prop. Feel free to make a pr and I’ll take a look. It should be a fairly straightforward addition.

rafgraph avatar Oct 04 '21 15:10 rafgraph