Skip to content

Table: Cannot set autoSize from ScrollerOptions #16209

@ymg2006

Description

@ymg2006

Describe the bug

Create a table with virtualScroll and pass
virtualScrollOptions: ScrollerOptions = {
autoSize: false
};
but after setting this from options, it will override the default value of table static true value passed to component.
Screenshot 2024-08-10 112539
Screenshot 2024-08-10 112609

Environment

Windows 11

Reproducer

No response

Angular version

17.3.4

PrimeNG version

17.8.8

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.15.0

Browser(s)

No response

Steps to reproduce the behavior

Create a table with virtualScroll and pass
virtualScrollOptions: ScrollerOptions = {
autoSize: false
};
but after setting this from options, it will override the default value of table static true value passed to component.
Screenshot 2024-08-10 112539
Screenshot 2024-08-10 112609

Expected behavior

passed options should override default values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LTS-PORTABLEIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions