My question is, how to lose focus when mouseleave event is triggered. The flow is as follows:
<input ng-mouseover="$root.gridOptionsForReportErrors.filterFocus()" ng-mouseleave="$root.gridOptionsForReportErrors.filterBlur()" ng-click="$root.gridOptionsForReportErrors.filterFocus()" type="text" class="ui-grid-filter-input ui-grid-filter-input-0 ng-empty ng-touched" ng-model="colFilter.term" ng-attr-placeholder="{{colFilter.placeholder || ''}}" aria-label="Filter for column" placeholder="">
In the code above $root.gridOptionsForReportErrors.filterBlur()
function is triggered successfully in Chrome as in IE.
But the input-text remains selected in Chrome and in IE the input-text looses focus, as expected.
I found one fix for this:
id="inputvalerror"
fliterBlur
function, I searched for this input-box element by the id and called the blur
function like this:
$('#inputvalerror').blur();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.