FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Select Typeahead doesn't display pre-selected value · Issue #3304 · patternfly/patternfly-react · GitHub

Select Typeahead doesn't display pre-selected value #3304

Description

Describe the issue. What is the expected and unexpected behavior?
Providing a pre-selected value to a Select typeahead will not display the value when the component is rendered. Using version v3.120.5

My guess would be that typeaheadInputValue defaults to empty string
https://github.com/patternfly/patternfly-react/blob/master/packages/patternfly-4/react-core/src/components/Select/Select.tsx#L127

Whilst there is a null check in rendering
https://github.com/patternfly/patternfly-react/blob/master/packages/patternfly-4/react-core/src/components/Select/Select.tsx#L443

Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.

https://codesandbox.io/embed/young-moon-kc50s?fontsize=14&hidenavigation=1&theme=dark

Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Bug, blocking for release next week.

What is your product and what release version are you targeting?
Internal RH product

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL