Component: Autocomplete component - wrong options being sent to overlay componentWrong data is being sent as input to the overlay component inside auto complete component. Virtual scroll options (virtualScrollOptions) are being sent as input([options]) to the <p-overlay> component inside <p-autocomplete> component. Below is the screenshot of the code in the lts version which we bought recently ![Screenshot 2024-04-10 at 4 36 41 AM](https://github.com/primefaces/primeng/assets/143848276/38a33678-abaf-4a6f-9751-242c2b039bf1) #15250
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
We bought 15 LTS version yesterday and noticed the below issue.
In our app we have a autocomplete component inside a modal which is scrollable. When the autocomplete dropdown is open if the user scrolls the main modal, the dropdown is being closed. We have to avoid that so trying to send custom config to the overlay options. And this change is not helping us as wrong input is being sent to the overlay component.
Here is the detailed description of the issue.
But inside the component Virtual scroll options (virtualScrollOptions) are being sent as input([options]) to the component instead of the overlayOptions as shown below. This has been copied from the autocomplete component itself.
Wrong data is being sent as input to the overlay component inside auto complete component. I can raise a pull request to fix this issue.
Environment
macos, chrome browser
Reproducer
No response
Angular version
15.2.9
PrimeNG version
15.4.17-lts
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
14.21.1
Browser(s)
chrome 123.0.6312.107
Steps to reproduce the behavior
This is not a functional issue but an issue with the code itself is wrong input is being sent to a component. And we are unable to override the overlay panel behaviour.
Expected behavior
Correct input - overlayOptions should be sent to the overlay component inside the autocomplete compoenent instead of virtualscrollOptions
The text was updated successfully, but these errors were encountered: