Skip to content

Clear button has small duplicate x (extra span) #843

Closed
@ctgbarcalow

Description

@ctgbarcalow

CodeSandbox.io Example
https://codesandbox.io/p/sandbox/react-bootstrap-typeahead-close-button-bug-rhdgwt?file=%2Fsrc%2FApp.tsx%3A7%2C1-11%2C9

image

Version

6.3.2

Steps to reproduce

Set clearButton=true

  <Typeahead
    options={["one", "two", "three"]}
    selected={["one"]}
    clearButton={true}
  />

Expected Behavior

The clear button to appear without a duplicate span creating a second smaller x.

Actual Behavior

Adds a button with a second smaller x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions