fix(ivy): unable to bind SafeValue to clip-path (#30491)

Fixes not being able to pass in a `SafeValue` to a `clip-path` binding, because `clip-path` wasn't in the list of exceptions.

PR Close #30491
This commit is contained in:
crisbeto
2019-05-15 20:24:55 +02:00
committed by Jason Aden
parent 60235b5aef
commit 1f6fcb6cd3
3 changed files with 23 additions and 2 deletions

View File

@ -186,7 +186,8 @@ export function ΔsanitizeUrlOrResourceUrl(unsafeUrl: any, tag: string, prop: st
export const ΔdefaultStyleSanitizer = (function(prop: string, value?: string): string | boolean {
if (value === undefined) {
return prop === 'background-image' || prop === 'background' || prop === 'border-image' ||
prop === 'filter' || prop === 'list-style' || prop === 'list-style-image';
prop === 'filter' || prop === 'list-style' || prop === 'list-style-image' ||
prop === 'clip-path';
}
return ΔsanitizeStyle(value);