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: MDBCard is there way to focus to scroll to it

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

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