digicorp / propeller

Propeller - Develop more, Code less. Propeller is a front-end responsive framework based on Google's Material Design Standards & Bootstrap.
http://propeller.in
MIT License
1.13k stars 141 forks source link

Sidebar Dropdown and Full Page Reload #46

Closed dguedry closed 6 years ago

dguedry commented 7 years ago

When using dropdowns in the sidebar, clicking a link causes a full page reload in an SPA. Top level links do not do this. Any thoughts on what would cause this?

<ul class="nav pmd-sidebar-nav">
    <li class="dropdown pmd-dropdown ...>
        <a>dropdown</a>
        <ul class="dropdown-menu">
                       <li><a href="/profile">Profile</a></li>  CAUSES FULL PAGE RELOAD ON CLICK
                   <li><a href="/logout">Logout</a></li> CAUSES FULL PAGE RELOAD ON CLICK
        </ul>
    </li>
            <li>
              <a href="/dashboard">Dashboard </a> DOES NOT CAUSE RELOAD
            </li>
     </ul>
piyush-digicorp commented 7 years ago

Hello, Please let us know if you are using any JS framework (like AngularJS) for your SPA. Because on our own site (https://propeller.in/get-started/), top level links in the sidebar do refresh the page. For example, click onGet Started link in the sidebar and it will refresh the page.

dguedry commented 7 years ago

Thanks for the reply. Yes, I'm using Meteor (Blaze). Must be something on the Meteor side.

piyush-digicorp commented 7 years ago

Hello,

We have used Propeller with Meteor in one of our projects, and it was properly implemented without any issue. It would be great if you can elaborate your issue (by sharing your complete code snippet). That will help us in giving an appropriate solution.