primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.53k stars 4.47k forks source link

Component: Calendar #15347

Open lerich opened 2 weeks ago

lerich commented 2 weeks ago

Describe the bug

  I updated primeng for last version and found that  hideOnDateTimeSelect does not work for RangeSelection.
  In your code if range selected, the datePicker is hiding at once.

Your code:

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

                if (this.mask) {
                    this.disableModality();
                }

                this.cd.markForCheck();
            }, 150);
        }
    Please fix the bug. 
    Valeriy

Environment

"primeng": "17.12.0",

Reproducer

No response

Angular version

17.3.1

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.11.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response