Popover return console error Cannot read property 'clos


Topic: Popover return console error Cannot read property 'closest' of undefined

elmajed2007 asked 4 years ago

Expect to display popover on click or on mouse over

Popover not displayed

also i want to ask should i use API javascript initialization new mdb.... etc for every component even if i want simple implementation without any customization ?

code snippet https://mdbootstrap.com/snippets/standard/elmajed2007/3030038#html-tab-viewit's working fine in your code snippet, but not working in my side, what i miss?I'm using visual studio 2019 community and installed mdb using npm then i referenced mdb.css and mdb.js and plugin.all.js files

please help me


Marcin Luczak staff commented 4 years ago

Hi,

Please publish your snippet. It is inaccessible now.

Also, please create your support posts in proper technology categories pages. Jquery category page is for jQuery related questions only and as I can see you are referencing the Popovers from the standard (MDB5 - non jQuery) version.

Popovers in the MDB5 Standard technology can be initialized via Javascript or proper data-attributes. Pease see basic example reference https://mdbootstrap.com/docs/standard/components/popovers/#section-basic-example

Keep coding,

Marcin


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.2
  • Device: computer
  • Browser: crome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes