Why is filter(drop-shadow) causing my SVG to disappear in Safari?

前端 未结 6 726
臣服心动
臣服心动 2020-12-06 06:04

I am developing an app using D3.js. I was sidetracked for a while, and recently came back to it. Today I found that, though it worked fine in the past, the SVG map in the ap

6条回答
  •  抹茶落季
    2020-12-06 06:41

    I had the same issue in our Angular app since we use the tag.

    I added this to the controller:

    $scope.basePath = window.location.href;
    

    Then in the template I added the base path to the filter:

    
    

    Hopefully this helps anyone who's using Angular. Check out this comment in Github for more information: https://github.com/airbnb/lottie-web/issues/360#issuecomment-320243980

提交回复
热议问题