MDBCard is there way to focus to scroll to it


Topic: MDBCard is there way to focus to scroll to it

Nates pro premium asked 5 years ago

I have the following code inside a normal mapping, this code highlights this card perfectly when the condition is met... however, is there a way to auto focus or scroll to this card as well?

            <MDBCard
              color={ props.currentVerse === index + 1 ? 'light-blue lighten-5' : '' }
              className="border border-light my-1"
            >

Jakub Chmura staff premium answered 5 years ago

Hi,

Unfortunately, we don't have props to achieve autofocus or scroll to the chosen card.

If you want to receive this effect you need to write a function and applied it to this component.

Best Regards, Kuba


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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: 4.21.0
  • Device: All
  • Browser: All
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags