Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Bug CardImage has zoom property now hardcoded on

mpcooke4 pro asked 6 years ago


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

 


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 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/


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.


Jakub Mandra staff 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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: 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