Skip to content

Froala editor affects keyboard navigation with TAB key in react-hook-form #430

@idzmag

Description

@idzmag

With react-hook-form and primereact components, the Calendar popup is not focusable by keyboard TAB key as soon as Froala editor is present in the form.

Here's reproduction, but you need to download the code and run it directly. In Stackblitz preview it works fine.

https://stackblitz.com/edit/vitejs-vite-zffnmcuz

Steps:

  1. Use TAB key to focus Calendar input
  2. Hit TAB key again - nothing happens and focus doesn't jump to popup

It works great as soon as Froala editor is removed. I'm hoping to get some info about Froala's behavior affecting global keyboard/focus events, because I'm sure that Froala's presence in the form is breaking the behavior.

I tried to set tabSpaces option to 0 but it doesn't change anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions