diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js index 0c46ada020..9d9c6a3421 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbrangeslider.directive.js @@ -332,7 +332,10 @@ For extra details about options and events take a look here: https://refreshless activePip[handle] = pip; } }); - activePip[handle].classList.add("noUi-value-active"); + + if (activePip[handle]) { + activePip[handle].classList.add("noUi-value-active"); + } }); } function addPipClickHandler(){ diff --git a/src/Umbraco.Web.UI.Client/src/installer/steps/user.controller.js b/src/Umbraco.Web.UI.Client/src/installer/steps/user.controller.js index e65499ba6b..a8bb36d3d5 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/steps/user.controller.js +++ b/src/Umbraco.Web.UI.Client/src/installer/steps/user.controller.js @@ -64,7 +64,10 @@ angular.module("umbraco.install").controller("Umbraco.Install.UserController", f activePip[handle] = pip; } }); - activePip[handle].classList.add("noUi-value-active"); + + if (activePip[handle]) { + activePip[handle].classList.add("noUi-value-active"); + } }); $(consentSlider).on('$destroy', function () {