Topic: Bug CardImage has zoom property now hardcoded on
During an npm update my card images all started zooming and the zoom is not configurable in a way that makes it possible to switch off. I think this is a bug introduced a week ago.
Here: https://git.mdbootstrap.com/mdb/react/re-pro/blob/master/src/components/CardImage.js
Support was added for a zoom property which was defaulted to false - however in the generated JSX you aren't passing the zoom property through so it's hardcoded to zoom.
if (this.props.src) {
return (
<View zoom hover={this.props.hover} cascade={this.props.cascade}>
<div
Jakub Mandra staff premium answered 6 years ago
Hi,
What a blunder from our side. Thank you for report -> fixed.
Is it kind of problem for you, which can't wait till the next release?
Best,
Jakub
mpcooke4 pro answered 6 years ago
I'm a bit new to the js ecosystem I will see if I can work out how to pin mdbreact to an older version in git until it's fixed in head.
mpcooke4 pro answered 6 years ago
I think i've managed to pin it to the last commit of 2018 okay as a temporary solution (78707d22), thanks.
Jakub Mandra staff premium commented 6 years ago
Okay, will inform about the new version when it comes out on our main page. Also you can find more here: https://mdbootstrap.com/docs/react/changelog/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: 4.8.4
- Device: Macbook
- Browser: Chrome
- OS: OsX
- Provided sample code: Yes
- Provided link: No