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: Tooltip : TypeError: Cannot read property '0' of undefined

Codinga free asked 5 years ago


**Expected behavior**No error**Actual behavior**TypeError: Cannot read property '0' of undefined**Resources (screenshots, code snippets etc.)**

<span className="float-right">
                                                <MDBTooltip
                                                    placement="top"
                                                    tag="a"
                                                    component="i"
                                                    componentClass="fa fa-shopping-cart grey-text ml-3"
                                                    tooltipContent="Ajouter au panier" />
                                                <MDBTooltip
                                                    placement="top"
                                                    tag="a"
                                                    component="i"
                                                    componentClass="fa fa-eye grey-text ml-3"
                                                    tooltipContent="Voir les détails" />
                                            </span>

Jakub Mandra staff answered 5 years ago


Hi,

Tooltips and popovers were completely rebuilt in version 4.12.0 (complete changelog) and their syntax has changed.

Please follow the actual documentation here: https://mdbootstrap.com/docs/react/advanced/tooltips/

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: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.13.0
  • Device: Mac os
  • Browser: Chrome
  • OS: Mac os
  • Provided sample code: No
  • Provided link: No