primefaces / primefaces/primereact

Multiselect "appendTo="self" menu select display UI bug

Open
#8,308 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When applying appendTo="self" on <Multiselect /> input and menu UI styles are displayed out of frame.
Without appendTo everything works fine.
Applying appendTo="self" on <Select /> works as expected.

Image
Reproducer

https://stackblitz.com/edit/5ngsmpgu-4fmfkx7n?file=src%2FApp.jsx

System Information
-
Steps to reproduce the behavior
  1. Go to https://stackblitz.com/edit/5ngsmpgu-4fmfkx7n?file=src%2FApp.jsx
  2. Run the app
  3. add appendTo="self"
Expected behavior

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the StackBlitz reproducer's src/App.jsx and compare the Multiselect appendTo="self" behavior with Select, where the same option works. Reproduce the out-of-frame menu styling, then trace the corresponding Multiselect component entry point; done means the menu remains correctly positioned when appendTo="self" is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.