Skip to content

Dropdown | Doesn't blur input and close options container when window loses focus #491

@aVileBroker

Description

@aVileBroker

Scenario is to

  • Open a dropdown, then move focus from the browser window
  • The dropdown may or may not close
  • On return to the window, the dropdown may still be open, but without any focus within it
  • Because of this, the dropdown can't get an onBlur event, because it isn't focused
  • It will stay open until an onBlur event, which can only occur if the user tabs back to the input to focus it and then click away

AC

  • Dropdown checks every render if it is open AND not focused
  • If it is open without focus, it calls the onBlur function so the user can be notified

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions