Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • John B 5 posts 75 karma points
    Oct 26, 2017 @ 16:26
    John B

    Color Picker Cannot read property 'hasOwnProperty' of null

    Hello there. Today faced a problem on umbraco 7.7.4 + lates LeBlender Editor:

    on some of editors ColorPicker throws console error: "Cannot read property 'hasOwnProperty' of null" and didn't set any value to editor.

    I didn't find out when it happen, but changing

    var currentColor = $scope.model.value.hasOwnProperty('value') ? $scope.model.value.value : $scope.model.value;


    var currentColor = ($scope.model.value && $scope.model.value.hasOwnProperty('value')) ? $scope.model.value.value : $scope.model.value;

    in umbraco.controller.js -> function ColorPickerController($scope), fixes the problem. So question is - what i need to do, to make it fixed after next umbraco updates? :)

  • Shannon Deminick 1488 posts 5014 karma points hq
    Oct 26, 2017 @ 23:32
    Shannon Deminick

    Best thing to do is create a Pull Request from and target the dev-v7 branch, the fix will get reviewed and merged in :) Here's some docs about the process

  • Dave Clarke 15 posts 127 karma points
    Nov 21, 2017 @ 15:25
    Dave Clarke

    I'm also seeing this issue on 7.7.4 with LeBlender - was there a fix worked on at all?

  • Kristoffer 10 posts 80 karma points c-trib
    Jan 12, 2018 @ 08:38

    This is still a issue on 7.7.7 with latest LeBlender from nuget

Please Sign in or register to post replies

Write your reply to: