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

p-dataView not updating view after [layout] change #9494

Closed
makkaronis4e opened this issue Nov 4, 2020 · 2 comments
Closed

p-dataView not updating view after [layout] change #9494

makkaronis4e opened this issue Nov 4, 2020 · 2 comments
Assignees
Labels
LTS-FIXED-9.2.5 Fixed in PrimeNG LTS 9.2.5 LTS-FIXED-10.1.0 Fixed in PrimeNG LTS 10.1.0 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@makkaronis4e
Copy link

makkaronis4e commented Nov 4, 2020

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting

Plunkr Case (Bug Reports)

https://stackblitz.com/edit/primeng-dataview-demo-6xq8gk?file=src%2Fapp%2Fapp.component.ts

click on button "switch to list"

Current behavior
When changing [layout] value, view is not updating. At the same time wrapper class and p-dataViewLayoutOptions updating fine.

d

@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Nov 25, 2020
@Detrasoft
Copy link

I have a similar problem. The cause can be the same as reported.
When adding items to the array, the dataview component is not updated until an iteration is triggered manually by the user.
captured-min

https://stackblitz.com/edit/primeng-dataview-demo-pnyzqa?file=src/app/app.component.ts

@michael-souto
Copy link

Exactly as reported I am having the same problem in the most current versions of primeng.

When adding a record to the array through typescript the dataview component is not updated automatically. It needs an iteration of the user for it to be updated with the record that was added.

Simulated problem in my repository:
https://github.com/michael-expedito/teste-data-view

@yigitfindikli yigitfindikli 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 Mar 11, 2021
@yigitfindikli yigitfindikli self-assigned this Mar 11, 2021
@yigitfindikli yigitfindikli added this to the 11.3.1 milestone Mar 11, 2021
@yigitfindikli yigitfindikli added LTS-FIXED-10.1.0 Fixed in PrimeNG LTS 10.1.0 LTS-FIXED-9.2.5 Fixed in PrimeNG LTS 9.2.5 and removed LTS-PORTABLE labels Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-FIXED-9.2.5 Fixed in PrimeNG LTS 9.2.5 LTS-FIXED-10.1.0 Fixed in PrimeNG LTS 10.1.0 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants