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

fix(Side Menu): fix error on undefined scrollScope #5844

Closed
wants to merge 4,303 commits into from

Conversation

Merott
Copy link
Contributor

@Merott Merott commented Mar 15, 2016

Short description of what this resolves:

After navigating away from the view that contained the menu, the scope() function returns undefined, and an error is thrown trying to freeze scroll.

Changes proposed in this pull request:

  • a simple truthy check to short-circuit the potential exception

Ionic Version: 1.x

mlynch and others added 30 commits December 6, 2015 10:41
Prevent the popover options to be overwritten (fix ionic-team#3173)
Add ionicTabs#showBar() method to set/get whether the tabs bar is shown
This fix enables the data-tap-disabled tag to completely bypass tap handling for designated elements. 

This is a bug fix for 

ionic-team#2132
http://forum.ionicframework.com/t/ionic-tap-event-conflicting-with-d3-event/7369
http://stackoverflow.com/questions/30113156/d3-zoom-in-ionic

and more.

Without this fix, the tap event handling of ionic conflicts with d3 and many other js libs.
fix(scroll): prevent 'cannot read from undefined' exception
Fixes ionic-team#4070 because Windows Phone reports itself as being "Mozilla/5.…
Added two more choices of column size: 40% and 60%
Access popup scope in the tap event handlers
extension to support multiple selection
don't throw exceptions if the view is destroyed before the view is resized
…ewheel

Added mousewheel support for touch devices
Fix `e.detail.keyboardHeight` undefined error in keyboardAttach directive
Using parseFloat() to yield more precise pixel calculation.
adamdbradley and others added 24 commits January 22, 2016 07:52
fix(ionSlideBox): only disable ngAnimate for slidebox and its children
fix(ionSlidePage): update slider on destroy
Folder name is different in doc from origin.
docs: js/angular-ui/ directory reference
fix(nullRef): nullify reference to the destroyed slider
docs(): close ion-input tag correctly
docs(): correct break tag in events.js
After navigating away from the view that contained the menu, the `scope()` function returns undefined, and an error is thrown trying to freeze scroll.
@Merott Merott force-pushed the scrollScope-check branch from 7c5eb91 to de18df9 Compare March 15, 2016 12:23
@mlynch mlynch closed this Jun 24, 2016
github-merge-queue bot pushed a commit that referenced this pull request Jun 26, 2024
### Release Notes

<details>
<summary>ionic-team/stencil (@&#8203;stencil/core)</summary>

###
[`v4.19.0`](https://togithub.com/ionic-team/stencil/blob/HEAD/CHANGELOG.md#-4190-2024-06-26)

[Compare
Source](https://togithub.com/ionic-team/stencil/compare/v4.18.3...v4.19.0)

### Bug Fixes

* **compiler:** support rollup's external input option
([#3227](ionic-team/stencil#3227))
([2c68849](ionic-team/stencil@2c68849)),
fixes [#3226](ionic-team/stencil#3226)
* **emit:** don't emit test files
([#5789](ionic-team/stencil#5789))
([50892f1](ionic-team/stencil@50892f1)),
fixes [#5788](ionic-team/stencil#5788)
* **hyrdate:** support vdom annotation in nested dsd structures
([#5856](ionic-team/stencil#5856))
([61bb5e3](ionic-team/stencil@61bb5e3))
* label attribute not toggling input
([#3474](ionic-team/stencil#3474))
([13db920](ionic-team/stencil@13db920)),
fixes [#3473](ionic-team/stencil#3473)
* **mock-doc:** expose ShadowRoot and DocumentFragment globals
([#5827](ionic-team/stencil#5827))
([98bbd7c](ionic-team/stencil@98bbd7c)),
fixes [#3260](ionic-team/stencil#3260)
* **runtime:** allow watchers to fire w/ no Stencil members
([#5855](ionic-team/stencil#5855))
([850ad4f](ionic-team/stencil@850ad4f)),
fixes [#5854](ionic-team/stencil#5854)
* **runtime:** catch errors in async lifecycle methods
([#5826](ionic-team/stencil#5826))
([87e5b33](ionic-team/stencil@87e5b33)),
fixes [#5824](ionic-team/stencil#5824)
* **runtime:** don't register listener before connected to DOM
([#5844](ionic-team/stencil#5844))
([9d7021f](ionic-team/stencil@9d7021f)),
fixes [#4067](ionic-team/stencil#4067)
* **runtime:** properly assign style declarations
([#5838](ionic-team/stencil#5838))
([5c10ebf](ionic-team/stencil@5c10ebf))
* **testing:** allow to re-use pages across it blocks
([#5830](ionic-team/stencil#5830))
([561eab4](ionic-team/stencil@561eab4)),
fixes [#3720](ionic-team/stencil#3720)
* **typescript:** remove unsupported label property
([#5840](ionic-team/stencil#5840))
([d26ea2b](ionic-team/stencil@d26ea2b)),
fixes [#3473](ionic-team/stencil#3473)


### Features

* **cli:** support generation of sass and less files
([#5857](ionic-team/stencil#5857))
([1883812](ionic-team/stencil@1883812)),
closes [#2155](ionic-team/stencil#2155)
* **compiler:** generate export maps on build
([#5809](ionic-team/stencil#5809))
([b6d2404](ionic-team/stencil@b6d2404))
* **complier:** support type import aliasing
([#5836](ionic-team/stencil#5836))
([7ffb25d](ionic-team/stencil@7ffb25d)),
closes [#2335](ionic-team/stencil#2335)
* **runtime:** support declarative shadow DOM
([#5792](ionic-team/stencil#5792))
([c837063](ionic-team/stencil@c837063)),
closes [#4010](ionic-team/stencil#4010)
* **testing:** add `toHaveLastReceivedEventDetail` event spy matcher
([#5829](ionic-team/stencil#5829))
([63491de](ionic-team/stencil@63491de)),
closes [#2488](ionic-team/stencil#2488)
* **testing:** allow to disable network error logging via
'logFailingNetworkRequests' option
([#5839](ionic-team/stencil#5839))
([dac3e33](ionic-team/stencil@dac3e33)),
closes [#2572](ionic-team/stencil#2572)
* **testing:** expose captureBeyondViewport in pageCompareScreenshot
([#5828](ionic-team/stencil#5828))
([cf6a450](ionic-team/stencil@cf6a450)),
closes [#3188](ionic-team/stencil#3188)

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.