Semantic-Org / Semantic-UI-Meteor

Official Semantic UI Integration for Meteor
MIT License
224 stars 33 forks source link

Can not get a modal to work #113

Closed partounian closed 7 years ago

partounian commented 7 years ago

$(...).modal is not a function is the error I get in the console. I have been trying to figure this out with a friends for hours.

We re

HTML:

<template name="testForm">  
    <div class="ui modal">  
      <i class="close icon"></i>  
         <div class="header">Test</div>  
    </div>
</template>

JS:

Template.testForm.onRendered(function () {  
   this.$('.ui.modal').modal();  
   this.$('.ui.modal').modal('show');  
});  

EDIT: When looking in dev tools it all seems to be loaded in the correct order. I have tried using this., tried putting it in a Githubissues.

  • Githubissues is a development platform for aggregating issues.