Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Dropdown - Text not displayed in Input in Controlled mode #1412

@sreejithr

Description

@sreejithr

Bug Report

When using the Dropdown component in controlled mode (passing searchQuery from the container), the text that the user types is not displayed in the input box.

Steps

  1. Install v0.31 of Stardust.
  2. In your component, keep the searchQuery in state.
  3. Pass searchQuery state down to Dropdown component's searchQuery prop.
  4. Set the searchQuery in state in the onSearchQueryChange callback.
  5. Type in the Dropdown input box.

Expected Result

Input should display the keystrokes typed by the user.

Actual Result

Input not displaying the keystrokes typed by the user.

Version

0.31.0

Testcase

https://codesandbox.io/s/stardustdropdowncontrolledbug-q0fpp

Metadata

Metadata

Assignees

Labels

vstsPaired with ticket in vsts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions