angular2-datetimepicker
angular2-datetimepicker copied to clipboard
Set Time button is submitting the form when the picker is hosted within a form
The Set Time button is defined like this in the component code:
<button class="button" (click)="setTimeView()">Set Time
As you can see, it has no type attribute so by default it is treated as a submit rather than a button.
As a result when you click Set Time it is submitting the form and this is incorrect behaviour. Could an attribute of type="button" be added? I will submit a P.R now
I also face the same issue.
any feedback from developers to your issues?