Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeSelect: Selection panel detached from input when open on top #5673

Open
yannick-bonnefond opened this issue May 1, 2024 · 0 comments
Open
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@yannick-bonnefond
Copy link

yannick-bonnefond commented May 1, 2024

Describe the bug

When the tree select input is at the bottom of the page, the selection panel open at the top of the input.
Expanding/collapsing nodes detach the panel from the input field

Screen.Recording.2024-05-01.at.17.19.43.mov

selection panel is anchored to the input from its top, which works well when opened bellow the input.
When open at the top of the input, it should be anchored to the input from its bottom.

Hope it makes sense.

Reproducer

https://stackblitz.com/edit/primevue-create-vue-issue-template-ljr5ol?file=src%2FApp.vue

PrimeVue version

3.52.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Make sure the input is at the bottom of the page
  2. Click the input to open the panel
  3. select the first root value (2024)
  4. close the panel
  5. Click the input to open the panel
  6. collapse the expanded selected value

Expected behavior

Expected behavior should be similar to the TreeSelect on Ant design for instance.
When open at the top of the input, selection panel should be anchored to the input from its bottom.

Screen.Recording.2024-05-02.at.09.04.27.mov
@yannick-bonnefond yannick-bonnefond added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant