Skip to content

Commit

Permalink
Merge pull request #51 from david-poindexter/page-jump
Browse files Browse the repository at this point in the history
Prevent default behavior on datetimepickers to avoid auto scrolling to top of page
  • Loading branch information
valadas authored Jan 31, 2024
2 parents 06abc1f + f7b7737 commit ebb71a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<input name="period_start" id="period_start" type="text" placeholder="mm/dd/yyyy" class="form-control" date-formatter uib-datepicker-popup="M!/d!/yyyy" ng-model="period_start" is-open="periodStartDateTimePicker.isOpen" datepicker-options="dateOptions" close-text="Close" />
<div class="input-group-append">
<div class="input-group-text">
<a href="#" class="text-muted" ng-click="periodStartDateTimePicker.isOpen=!periodStartDateTimePicker.isOpen"><i class="fas fa-calendar"></i></a>
<a href="#" class="text-muted" ng-click="$event.preventDefault(); periodStartDateTimePicker.isOpen=!periodStartDateTimePicker.isOpen"><i class="fas fa-calendar"></i></a>
</div>
</div>
</div>
Expand All @@ -20,7 +20,7 @@
<input name="period_end" id="period_end" type="text" placeholder="mm/dd/yyyy" class="form-control" date-formatter uib-datepicker-popup="M!/d!/yyyy" ng-model="period_end" is-open="periodEndDateTimePicker.isOpen" datepicker-options="dateOptions" close-text="Close" />
<div class="input-group-append">
<div class="input-group-text">
<a href="#" class="text-muted" ng-click="periodEndDateTimePicker.isOpen=!periodEndDateTimePicker.isOpen"><i class="fas fa-calendar"></i></a>
<a href="#" class="text-muted" ng-click="$event.preventDefault(); periodEndDateTimePicker.isOpen=!periodEndDateTimePicker.isOpen"><i class="fas fa-calendar"></i></a>
</div>
</div>
</div>
Expand Down

0 comments on commit ebb71a5

Please sign in to comment.