Skip to content

Commit

Permalink
Fix primefaces#2422: Dropdown do not close on scroll in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 13, 2021
1 parent 77b1ce4 commit 28f37e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ export class Dropdown extends Component {
bindScrollListener() {
if (!this.scrollHandler) {
this.scrollHandler = new ConnectedOverlayScrollHandler(this.container, () => {
if (this.state.overlayVisible) {
if (this.state.overlayVisible && !DomHandler.isTouchDevice()) {
this.hideOverlay();
}
});
Expand Down

0 comments on commit 28f37e5

Please sign in to comment.