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

Calendar: When use with Datatable filter, the calendar would show at the bottom of the page. #5055

Closed
anchan42 opened this issue Jan 10, 2024 · 7 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@anchan42
Copy link

anchan42 commented Jan 10, 2024

Describe the bug

The calendar would show at the bottom of the page when the filter icon is clicked and the calendar field gets focused. Click on the calendar icon would make it disappear. Subsequent clicks or focus would work properly.

Reproducer

https://codesandbox.io/p/devbox/primevue-demo-forked-69xnpd

PrimeVue version

3.46

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Click on the Country filter icon.
  2. Scroll down to see the calendar panel at the bottom of the page.

Expected behavior

The calendar panel should show as a popup.

@anchan42 anchan42 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 10, 2024
@mertsincan
Copy link
Member

Unfortunately, I couldn't open the attached codesanbox link. @tugcekucukoglu Could you please try, too?

@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 11, 2024
@mertsincan mertsincan added this to the 3.47.0 milestone Jan 11, 2024
@tugcekucukoglu
Copy link
Member

I have tried Chrome, Firefox, and Safari, and could not open. Could you share a new link?

@anchan42
Copy link
Author

Please try the new link below:
https://stackblitz.com/edit/eivnbp?file=src%2FApp.vue

The original link still working for me but it show "@vnode-* hooks in templates are no longer supported." error now for some reason.

@tugcekucukoglu
Copy link
Member

  • When the Calendar receives focus, the Calendar panel will open. To prevent this default behavior, showOnFocus property can be changed to false.
  • I can not see any error message in the demo that you have sent about @vnode-*. It's Vue core related error and might be related your local dependencies.

@anchan42
Copy link
Author

anchan42 commented Jan 13, 2024

Sorry, I wasn't concise enough and also went off topic. Thanks a lot for looking in to this.

  • Please see screen record for the Calendar component's problem. Video
  • The @vnode-* problem is on Code Sandbox only and has nothing to do with PrimeVue. This is off topic and probably not worth wasting your time. Please see picture below anyway.

image

@tugcekucukoglu
Copy link
Member

Thank you for the video. I can suggest using 'showOnFocus' property for Calendar. Because when Calendar receives focus, the panel will open

@anchan42
Copy link
Author

Thanks, I am using showOnFocus as a work around for the moment.
I understand that when Calendar recieves focus, the default is that the panel will open.
But it should open as a popup panel like this:
image

Instead of appending itself at the end of document like this:

image

@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants