Skip to content

The Autofocus doesn't seem to work on the Yoota Editor #445

Open
@aidan-code

Description

When ever my page mounts the Editor is not focused on. It'd only focus if i click on it.
I'm not sure if this is a bug. but all I've tried to get the editor to auto focus didn't work even after adding the autofocus prop.

<YooptaEditor
placeholder="Start creating"
plugins={plugins}
editor={editor}
value={value}
onChange={onChange}
tools={TOOLS}
style={{ width: "100%" }}
className="text-small-xl border w-full rounded p-2 cursor-text"
marks={MARKS}
autoFocus
/>

btw great editor
guys😌

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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