p-image does not allow src to be of type SafeUrl #11143
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ...
Current behavior
Throws a type error
Type 'SafeUrl' is not assignable to type 'string'
due to the src Input Decorator only accepting values of typestring
.What is the motivation / use case for changing the behavior?
Supporting the
SafeUrl
type would make thep-image
component compatible with the underlying Angularsrc
directive on the image element, which does support theSafeUrl
type.Angular version: 13.1
PrimeNG version: 13.1
Browser: all
Language: all
The text was updated successfully, but these errors were encountered: