Skip to content

FileInput - Prevent scrolling down page when space key is pressed on 'browse' #6169

@jcfilben

Description

@jcfilben

Expected Behavior

If the user is navigating by keyboard and presses space on 'browse' this shouldn't cause the page to scroll down.

Actual Behavior

Page scrolls down when space key is pressed on 'browse'

URL, screen shot, or Codepen exhibiting the issue

This can be seen on the FileInput documentation page https://v2.grommet.io/fileinput

Steps to Reproduce

  1. Tab to the FileInput 'browse' button
  2. Press space key

Your Environment

  • Grommet version: 2.24.0
  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue that does not match design or documentation and requires code changes to address

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions