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

Paginator: Responsive Templating showing multiple layouts on break points #5604

Closed
SamuelWei opened this issue Apr 17, 2024 · 1 comment
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@SamuelWei
Copy link

SamuelWei commented Apr 17, 2024

Describe the bug

Using a Paginator within a DataTable or DataView with template set as:

:paginatorTemplate="{
        '640px': 'PrevPageLink CurrentPageReport NextPageLink',
        default:
          'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink',
      }"

When the window is EXACTLY 940px wide, we see both paginator layouts.
+1 pixel and we only see default.
-1 pixel and we only see the 940px template.

image

Reproducer

https://stackblitz.com/edit/82sfik?file=src%2FApp.vue

PrimeVue version

3.51.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@SamuelWei SamuelWei added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 17, 2024
@SamuelWei
Copy link
Author

SamuelWei commented Apr 17, 2024

Duplicate of #4458
Looks like it was fixed in fbec81f but it is still / again present in the latest PrimeVue version

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 25, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.52.0 milestone Apr 25, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Apr 25, 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

2 participants