umb-auto-focus: add attribute to allow focus on filled inputs
This commit is contained in:
@@ -4,7 +4,7 @@ angular.module("umbraco.directives")
|
||||
return function(scope, element, attr){
|
||||
var update = function() {
|
||||
//if it uses its default naming
|
||||
if(element.val() === ""){
|
||||
if(element.val() === "" || attr.focusOnFilled){
|
||||
element.focus();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user