d-oliveros / ngSmoothScroll

AngularJS directives for animating smooth scrolling to elements.
276 stars 110 forks source link

Avoiding form submit when used in submit button. #56

Open dmiranda2791 opened 8 years ago

dmiranda2791 commented 8 years ago

I'm using it in the submit button of a form and it's preventing the submission. Here it is my code. <md-button type="submit" ng-disabled="patientSearchForm.$invalid" class="md-raised md-primary md-button" scroll-to="search-result" container-id="view-container" offset="90"> SEARCH </md-button>