It’s always disappointing if an artist whose work one likes turns out to have unpleasant political or moral views. It would probably colour my attitude towards their work at least a little bit, but I can’t think of any cases in which that sort of issue has led me to abandon an artist’s work altogether.
It’s already been noted in posts above that the effect would depend on both the nature of the offending views and the extent to which they make it into the work. Even if they do taint the work, though, it’s not necessarily a deal-breaker. The prime example for me is On the Waterfront, a film originating from rather loathsome sentiments, but which is nevertheless truly brilliant.
The ten commandments is nice, but they could have cut a few.
Too many don’ts.