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 #4458

Closed
slumtrimpet opened this issue Sep 17, 2023 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@slumtrimpet
Copy link

Describe the bug

Using a Paginator within a DataTable with template set as:

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

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

image

Reproducer

https://codesandbox.io/p/sandbox/primevue-demo-forked-pdqgd5?file=%2Fsrc%2FApp.vue%3A15%2C40

PrimeVue version

3.34.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@slumtrimpet slumtrimpet added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 17, 2023
@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 Nov 16, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.41.0 milestone Nov 16, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Nov 16, 2023
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