diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/prevententersubmit.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/prevententersubmit.directive.js
index 355b02216f..62334387cb 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/prevententersubmit.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/prevententersubmit.directive.js
@@ -17,7 +17,7 @@ angular.module("umbraco.directives")
}
$(element).on("keypress", function (event) {
- if (event.which === 13) {
+ if (event.which === 13 && enabled === true) {
event.preventDefault();
}
});
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbsearchfilter.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbsearchfilter.directive.js
index efbc384cb4..2e9f15913c 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbsearchfilter.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbsearchfilter.directive.js
@@ -24,7 +24,7 @@
@param {boolean} model Set to true or false to set the checkbox to checked or unchecked.
@param {string} inputId Set the id of the checkbox.
@param {string} text Set the text for the checkbox label.
-@param {string} labelKey Set a dictinary/localization string for the checkbox label
+@param {string} labelKey Set a dictionary/localization string for the checkbox label
@param {callback} onChange Callback when the value of the checkbox change by interaction.
@param {boolean} autoFocus Add autofocus to the input field
@param {boolean} preventSubmitOnEnter Set the enter prevent directive or not
@@ -42,13 +42,15 @@
vm.change = change;
function onInit() {
- vm.inputId = vm.inputId || "umb-check_" + String.CreateGuid();
+ vm.inputId = vm.inputId || "umb-search-filter_" + String.CreateGuid();
+ vm.autoFocus = Object.toBoolean(vm.autoFocus) === true;
+ vm.preventSubmitOnEnter = Object.toBoolean(vm.preventSubmitOnEnter) === true;
// If a labelKey is passed let's update the returned text if it's does not contain an opening square bracket [
if (vm.labelKey) {
localizationService.localize(vm.labelKey).then(function (data) {
- if(data.indexOf('[') === -1){
- vm.text = data;
+ if (data.indexOf('[') === -1){
+ vm.text = data;
}
});
}
diff --git a/src/Umbraco.Web.UI.Client/src/less/components/umb-search-filter.less b/src/Umbraco.Web.UI.Client/src/less/components/umb-search-filter.less
index b96d3e8569..b38f5937c7 100644
--- a/src/Umbraco.Web.UI.Client/src/less/components/umb-search-filter.less
+++ b/src/Umbraco.Web.UI.Client/src/less/components/umb-search-filter.less
@@ -21,11 +21,12 @@ html .umb-search-filter {
// "icon-search" class it kept for backward compatibility
.umb-icon,
.icon-search {
- color: #d8d7d9;
+ color: @gray-8;
position: absolute;
top: 0;
bottom: 0;
left: 10px;
margin: auto 0;
+ pointer-events: none;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-search-filter.html b/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-search-filter.html
index d6fde29090..ab21654f91 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-search-filter.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-search-filter.html
@@ -2,27 +2,14 @@