materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Modal from sample v1.0.0-alpha.3 not working

Open idevtech opened this issue 8 years ago • 1 comments

I created a sample .html page w/ the following code from the documentation (http://next.materializecss.com/modals.html). However, when the Modal button is clicked the modal window is not displayed. Both the .css and .js files are being loaded.

The Modal page in the documentation does work.

<!DOCTYPE html>
<html>

<head>
  <link type="text/css" rel="stylesheet" href="./dist/materialize/css/materialize.css" media="screen,projection" />
  <script type="text/javascript" src="./dist/materialize/js/materialize.js"></script>
</head>

<body>
  <a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a>

  <!-- Modal Structure -->
  <div id="modal1" class="modal">
    <div class="modal-content">
      <h4>Modal Header</h4>
      <p>A bunch of text</p>
    </div>
    <div class="modal-footer">
      <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Agree</a>
    </div>
  </div>
</body>

</html>

idevtech avatar Feb 13 '18 23:02 idevtech

Figured out it needs

idevtech avatar Feb 14 '18 00:02 idevtech