Topic: MDBModal example is not working

alanB free asked 5 years ago


Expected behavior

show Modal with provided ModalHeader, ModalBody and ModalFooter content if isOpen is true

Actual behavior

It shows only the overlay

//My index.js have these imports
import '@fortawesome/fontawesome-free/css/all.min.css';
import 'bootstrap-css-only/css/bootstrap.min.css';
import './assets/scss/mdb.scss';
import './index.css';
import App from './App';

Resources (screenshots, code snippets etc.)

I've gone through Modal example isn't working and Not working with create-react-app

React Bootstrap Modal / Popup

enter image description here


Aliaksandr Andrasiuk staff answered 5 years ago


Hi,

All the imports in 'index.js' arranged correctly, probably, it's not a problem of styles.

Can you show the code of your application? I can't reproduce the behaviour above without it.

Best regards.


alanB free commented 5 years ago

Hi @Aliaksandr Andrasiuk,

I created a test project and the modal works fine. I'll figure out the conflict on the current project.

Thanks.


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.19.0
  • Device: Macbook Pro, Android, iOS
  • Browser: All
  • OS: MacOS
  • Provided sample code: No
  • Provided link: Yes