Skip to content

Commit

Permalink
fix: #17222, hideOnDateTimeSelect issue (#17385)
Browse files Browse the repository at this point in the history
fix hideOnDateTimeSelect issue with range mode.
  • Loading branch information
imaksp authored Jan 15, 2025
1 parent ef66d35 commit 17ec6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ export class DatePicker extends BaseComponent implements OnInit, AfterContentIni
}
}

if ((this.isSingleSelection() && this.hideOnDateTimeSelect) || (this.isRangeSelection() && this.value[1])) {
if (this.hideOnDateTimeSelect && (this.isSingleSelection() || (this.isRangeSelection() && this.value[1]))) {
setTimeout(() => {
event.preventDefault();
this.hideOverlay();
Expand Down

0 comments on commit 17ec6d3

Please sign in to comment.