diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b4e7cbd7f..3d262040a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixes [#2776](https://github.com/microsoft/BotFramework-WebChat/issues/2776). Wait until button is shown/hid before taking screenshot - Use a new timeout `fetchImage` for images - Fixes [#2780](https://github.com/microsoft/BotFramework-WebChat/issues/2780). Added the `tel` protocol to the `allowedSchema` in the `sanitize-html` options, by [@tdurnford](https://github.com/tdurnford) in PR [#27XX](https://github.com/microsoft/BotFramework-WebChat/pull/27XX) +- Fixes [#2647](https://github.com/microsoft/BotFramework-WebChat/issues/2647). Update the `CroppedImage` component `PropType`, by [@tdurnford](https://github.com/tdurnford) in PR [#27XX](https://github.com/microsoft/BotFramework-WebChat/pull/27XX) ### Changed diff --git a/packages/component/src/Utils/CroppedImage.js b/packages/component/src/Utils/CroppedImage.js index 4ef56270ca..7831b0db48 100644 --- a/packages/component/src/Utils/CroppedImage.js +++ b/packages/component/src/Utils/CroppedImage.js @@ -35,7 +35,7 @@ CroppedImage.defaultProps = { CroppedImage.propTypes = { alt: PropTypes.string, className: PropTypes.string, - height: PropTypes.number.isRequired, + height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired, src: PropTypes.string.isRequired, width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired };