Skip to content

RemoveTokenIcon is not visible for long name tokens in AutoComplete with multiple option #8515

Open

Description

@mem70

Describe the bug

if you select an item from the suggestion list with a long text that exceeds the field width, the X button is not visible and the item cannot be removed.
You have to remove all the following items using backspace and then you can delete it.

Screen.Recording.2026-03-18.130950.mp4

Reproducer

https://stackblitz.com/run?file=src%2FApp.jsx

System Information

primereact: 10.9.7
react: 19.1.0

Steps to reproduce the behavior

  1. set the preview width to 300px
  2. select from the list: "Albania", "Congo, the democratic Republic" and "Denmark"
  3. you cannot remove the second option since X button is not visible

Expected behavior

There should be a way to delete the option; maybe the X button could be moved at the beginning or the field should have an horizontal scroll

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions