Skip to content

TypeError: BootStrap.Modal is not a constructor #14

@CreativeBlunder

Description

@CreativeBlunder

Hi,

Trying to get the modal working. When I click the link, I get the following error in the console:

TypeError: BootStrap.Modal is not a constructor

Here is the code for my modal:

<div class="modal fade hide" id="contact-modal" tabindex="-1" role="dialog" aria-labelledby="contact-modal-Label" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h4 class="modal-title" id="contact-modal-Label">Get In Touch</h4>
    </div>
    <div class="modal-body">
        ...
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>
</div>

And the link for opening the modal:

<a class="telephone" data-toggle="modal" href="#contact-modal"><i class="fa fa-comments"></i>...</a>

Also, do you have plans to port the bootstrap v3 modal js to prototype?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions