From 0582e4f72ea503f6baf4589eca1b35e8bfa12822 Mon Sep 17 00:00:00 2001 From: Kenn Jacobsen Date: Sun, 8 Sep 2019 20:26:45 +0200 Subject: [PATCH] Make decimal properties work with mandatory validation clientside --- .../src/views/propertyeditors/decimal/decimal.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/decimal/decimal.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/decimal/decimal.html index 28cb909cc0..d5560c8433 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/decimal/decimal.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/decimal/decimal.html @@ -5,6 +5,8 @@ pattern="[\-0-9]+([,\.][0-9]+)?" class="umb-property-editor umb-number" ng-model="model.value" + ng-required="model.validation.mandatory" + aria-required="{{model.validation.mandatory}}" val-server="value" fix-number min="{{model.config.min}}" max="{{model.config.max}}" step="{{model.config.step}}" />