Determines whether set focus to the focusable element, even if it is disabled. Remember that the disabled element always do not receive the 'selected' event.
(static) setFocusWhenDisabled(bool) → {caph.focus.focusControllerProvider}
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean | If true, will set focus when the focusable element is disabled. |
Returns:
Example
angular.module('myApp', ['caph.focus']).config(['focusControllerProvider', function(focusControllerProvider) {
focusControllerProvider.setFocusWhenDisabled(true);
}]);