Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options autofocus does not work #399

Closed
WolfgangKluge opened this issue Jan 28, 2022 · 0 comments
Closed

Options autofocus does not work #399

WolfgangKluge opened this issue Jan 28, 2022 · 0 comments
Labels

Comments

@WolfgangKluge
Copy link

Describe the bug
In my tests, both of these options have no effect.

To Reproduce

  1. Use the code, save as file
<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="https://unpkg.com/easymde/dist/easymde.min.css">
    <script src="https://unpkg.com/easymde/dist/easymde.min.js"></script>
</head>
<body>
    <textarea></textarea>
    <script>
        const easyMDE = new EasyMDE({
            autofocus: true
        });
    </script>
</body>
</html>
  1. load the page
  2. The element is not focused (try start typing)
  3. If the textarea has a autofocus property it will also not work as expected

Expected behavior
The focus should be set.. (or my expectation is wrong)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant