aavanzyl / ngx-tiny

Implementation of Light Weight Angular Components for Production Applications
https://aavanzyl.github.io/ngx-tiny
MIT License
7 stars 3 forks source link

datepicker closeOnSelection false doesn't work? #7

Closed jonathan-chin closed 4 years ago

jonathan-chin commented 4 years ago

I'm not sure if I'm doing this correctly but I don't think {closeOnSelection: false} is working. I also pass it {includeDays: 'none'} and that works as expected. However, with closeOnSelection, the popup closes as soon as I click on a date.

for what it's worth, I'm using this inside of an Ionic project.

  <ngx-date-picker                                                                                                                                                                                                 
    #date                                                                                                                                                                                                          
    [options]="{closeOnSelection: false, includeDays: 'none'}">                                                                                                                                                    
  </ngx-date-picker>                                                                                                                                                                                               
  <input                                                                                                                                                                                                           
    [formControlName]='name'                                                                                                                                                                                       
    [ngxDatePicker]='date'                                                                                                                                                                                         
    [placeholder]='placeholder | translate'                                                                                                                                                                        
    readonly                                                                                                                                                                                                       
    /> 
aavanzyl commented 4 years ago

@jonathan-chin This has been fixed in the latest version. I found that I was compensating for the inline date picker incorrectly and affecting the form date picker by doing this.