p-radioButton causes layout issues when used inside an overflow: auto div (all elements with p-hidden-accessible?) #10718
Labels
LTS-FIXED-10.1.4
Fixed in PrimeNG LTS 10.1.4
LTS-FIXED-11.4.7
Fixed in PrimeNG LTS 11.4.7
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-aszejq?file=src/app/app.component.html
Current behavior
When the radioButton is used in a div with overflow:auto and requires scrolling in the div to make the radioButton visible, extra space is added at the bottom of the page. When the radioButton is clicked, the page jumps.
Its exactly the same issue like #9725
and it is NOT only the radioButton, I guess its nearly every element which has a "p-hidden-accessible"-element. We had it with a listbox, with a checkbox, with a radioButton, ...
Our workaround is/was to do the same like in fbb4969 in a global css, but it looks like it should be fixed in the primeng code or? At least it was now partially fixed with #9725
Expected behavior
No extra space, and page should not scroll on interaction with the radioButton.
Minimal reproduction of the problem with instructions
See demo
What is the motivation / use case for changing the behavior?
RadioButton does not work if using overflow: auto to create scrollable panels.
Angular version: 12.2.9
PrimeNG version: 12.2.0 (but older had the same problem)
Browser: Chrome 94| Firefox 93
Language: TypeScript 4.0.2
The text was updated successfully, but these errors were encountered: