Skip to content

In detached mode when there are no items, the dropdown still appears #1191

Closed
@Mikilll94

Description

@Mikilll94

Description

I want to display the items only when user has typed at least three characters.

Currently this results in the bug shown on the screenshot:
Screenshot 2023-09-12 at 09 56 43

As you there is some strange white space below the input.

Reproduction

Steps

  1. Open this CodeSandbox https://codesandbox.io/s/dont-open-dropdown-g4gdcm?file=/app.tsx
  2. Click on Autocomplete and type "a".
  3. As you can see there a strange white space below the input.

Expected behavior

When no items are available, the dropdown should not open and this strange white space below the input should not be present.

Environment

  • OS: macOS 13.3.1
  • Browser: Brave Version 1.57.62 Chromium: 116.0.5845.180 (Official Build) (x86_64)
  • Autocomplete version: 1.11.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions