Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<ion-content scroll="false"> in side-menu gets scroll-content ionic-scroll classes & disables user-input #1467

Closed
fabianmu opened this issue May 22, 2014 · 5 comments
Assignees

Comments

@fabianmu
Copy link

I noticed that list-items within a side-menu stopped ignore all taps/clicks.

The markup:

<ion-side-menu side="left">
    <ion-content scroll="false">
      <ion-list class="app-menu center caps">
        <ion-item ng-click="logout()" nav-clear menu-close>
          Sign out
        </ion-item>
      </ion-list>
    </ion-content>
  </ion-side-menu>

Is rendered to - and containsscroll-content ionic-scroll - which I believe is not correct since I add the scroll="false" attribute.:

<ion-content scroll="false" class="scroll-content ionic-scroll">
  <ion-list class="app-menu center caps disable-user-behavior">
    <div class="list">
      <ion-item ng-click="logout()" nav-clear="" menu-close="" class="item">
        Sign out
      </ion-item>
    </div>
  </ion-list>
</ion-content>

Also, the following CSS is applied since, well we have a opened menu, which is, scrollable.

.menu-open .scroll-content {
    pointer-events: none;
}

This might be related to #1339

@ajoslin
Copy link
Contributor

ajoslin commented May 22, 2014

@adamdbradley It seems like the only way to really fix this would be to add a class to only the side-menu-content pane, and base the css rule off of that.

@fabianmu
Copy link
Author

I fixed it for now by adding a pointer-events: auto to the nested .item elements. But that does seem to more of a hack than a proper solution

@adamdbradley
Copy link
Contributor

I'm no longer able to replicate this, but it may be due to these fixes:
fa8aa6a
53c1710

If you are still having issues please feel free to reopen this, thanks.

@eporroa
Copy link

eporroa commented Jun 13, 2014

Hello, based on the TodoList tutorial, and opening on Safari-based browsers (iOS7, too), I can't see the rendered menu items on the left bar. Is there any fix with that? .. Looks like it's a CSS issue, I tried to apply .item{ z-index: 100; } and the items started to appear .

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants