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

bug: Uncaught TypeError: Cannot read property 'freeze' #3174

Closed
RangerRick opened this issue Feb 24, 2015 · 7 comments
Closed

bug: Uncaught TypeError: Cannot read property 'freeze' #3174

RangerRick opened this issue Feb 24, 2015 · 7 comments
Assignees

Comments

@RangerRick
Copy link

Type: bug

Platform: all

I'm getting this error in my console:

Uncaught TypeError: Cannot read property 'freeze' of null http://localhost:8100/lib/ionic/js/ionic.bundle.js Line: 6982
    console.(anonymous function) (index):34
    window.onerror (index):18
    triggerEvent ionic.bundle.js:802
    releaseGesture ionic.bundle.js:2008
    detect ionic.bundle.js:1380
    bindDomOnTouch ionic.bundle.js:929

The relevant line is: self.isScrollFreeze = self.scrollView.freeze(false); inside _handleEndDrag.

@Ionitron Ionitron added the needs: reply the issue needs a response from the user label Feb 24, 2015
@RangerRick
Copy link
Author

Can you provide a detailed description of this issue?

It appears to happen when I toggle a button I have inside a modal with scroll="false"

How would a robot go about replicating this issue?

I have created a codepen that reproduces the error: http://codepen.io/RangerRick/full/azKozj

Steps to reproduce:

  1. Open that codepen
  2. Click the "Filter" button
  3. Toggle one of the toggle buttons

On which platform does this happen occur? (iOS, Android, all, etc.)

All platforms, as far as I can tell. I see it in Chrome as well as the iOS emulator.

On which platform versions does this occur? (Android 4.2, iOS 8, all, etc.)

  • Chrome 41.0.2272.64
  • iOS 7 (emulated)
  • iOS 8 (emulated)

Is this an issue with the Ionic Framework or Ionic CLI?

Ionic Framework.

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Feb 25, 2015
@mhartington
Copy link
Contributor

Okay, so we need to check if the user has disabled scrolling first before freezing anything. Thanks for catching that @RangerRick

/~https://github.com/driftyco/ionic/blob/51ed1824d5320ac788c9d27561338a61cbf844bc/js/angular/controller/scrollController.js#L163

@nantunes
Copy link

@josdewitte
Copy link

This issue also occurs when swiping left for option buttons on the ion-list; And then the buttons do not auto-close anymore; resulting in multiple rows being swiped left due to this bug. Please fix?

@mhartington
Copy link
Contributor

@nantunes and @josdewitte, could you open a new issue pointing to that PR and provide a codepen demo?

@EffEPi
Copy link

EffEPi commented Jun 11, 2015

I am not sure if a new issue was open with what @josdewitte reported, but I am having the same issues and I cannot find a workaround...

@mhartington
Copy link
Contributor

@EffEPi could you open a new issue please

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

7 participants