Skip to content

Commit 01c22ac

Browse files
committed
fix(Filtering): Let mobile devices tap filter box
A preventDefault() in the filter input's ng-click was preventing mobile users from being able to select the input box. Tapping on it simply did nothing. Removing this preventDefault() fixed the issue, and does not seem to have caused any side effects.
1 parent 43d6480 commit 01c22ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/ui-grid/uiGridHeaderCell.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
<div ng-if="filterable" class="ui-grid-filter-container" ng-repeat="colFilter in col.filters">
16-
<input type="text" class="ui-grid-filter-input" ng-model="colFilter.term" ng-click="$event.stopPropagation()" ng-attr-placeholder="{{colFilter.placeholder || ''}}" />
16+
<input type="text" class="ui-grid-filter-input" ng-model="colFilter.term" ng-attr-placeholder="{{colFilter.placeholder || ''}}" />
1717

1818
<div class="ui-grid-filter-button" ng-click="colFilter.term = null">
1919
<i class="ui-grid-icon-cancel" ng-show="!!colFilter.term">&nbsp;</i> <!-- use !! because angular interprets 'f' as false -->

0 commit comments

Comments
 (0)