mirror of https://github.com/BTCPrivate/copay.git
remove auto-focus directive. Replaced by show-focus
This commit is contained in:
parent
e111f630e8
commit
2af28f0f1d
|
@ -280,16 +280,6 @@ angular.module('copayApp.directives')
|
|||
}
|
||||
}
|
||||
])
|
||||
.directive('autoFocus', function($timeout) {
|
||||
return {
|
||||
restrict: 'AC',
|
||||
link: function(_scope, _element) {
|
||||
$timeout(function() {
|
||||
_element[0].focus();
|
||||
});
|
||||
}
|
||||
};
|
||||
})
|
||||
.directive('showFocus', function($timeout) {
|
||||
return function(scope, element, attrs) {
|
||||
scope.$watch(attrs.showFocus,
|
||||
|
|
Loading…
Reference in New Issue