You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using NgbDateAdapter with anything other than the original NgbDateStruct will not work with a datepicker on an input. It looks like this was missed in my previous PR and when selecting a date from the popup it will show as blank on the input even though the model gets updated. I have something sort of working but having issues with dealing with any type of invalid input and it just causes it to crash. If i take out the second ternary here in datepicker-input on the function manualDateChange, it does end up fixing the crashing error after all my other changes. Not sure if that is the right solution though.
Bug description:
Using NgbDateAdapter with anything other than the original NgbDateStruct will not work with a datepicker on an input. It looks like this was missed in my previous PR and when selecting a date from the popup it will show as blank on the input even though the model gets updated. I have something sort of working but having issues with dealing with any type of invalid input and it just causes it to crash. If i take out the second ternary here in datepicker-input on the function manualDateChange, it does end up fixing the crashing error after all my other changes. Not sure if that is the right solution though.
If it helps I can open up a PR with the potential fix
Link to minimally-working plunker that reproduces the issue:
As this is not yet released I cannot make a plunker
Version of Angular, ng-bootstrap, and Bootstrap:
ng-bootstrap: master branch
The text was updated successfully, but these errors were encountered: