Skip to content

Feature request: adding autofocus option to Netlify frontend bundle #849

Description

@tinyapps

If time and resources permit, please consider adding the autofocus option to Netlify's frontend bundle. At the moment, this is what I'm doing instead (improvements by JavaScript wizards welcome!):

<script>
      // Wait 250ms before setting focus on the input element
      setTimeout(function() {
      // Get the input element
      const input = document.querySelector('input');
      // Focus on the input element
      input.focus();
      }, 250);
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions