-
Notifications
You must be signed in to change notification settings - Fork 3.4k
panel: trackedPanels caching issue #10894
Comments
@Splaktar can you label this pls? - I'll try to make a PR the next two weeks. |
Please provide a CodePen demo where this exception can be observed. |
@IMM0rtalis is this addressed in #11133? or is this still an issue? |
Still an issue, but I think I will not fix this in the next two months. But it is one of my all-time-open-tabs in the browser :D |
I tried making this change but it breaks 68 tests with For common tests the values of {id: 'panel_0', scope: Scope{$id: 2, $$childTail: null, $$childHead: null, $$prevSibling: null, $$nextSibling: null, $$watchers: null, $parent: Scope{$id: ..., $$childTail: ..., $$childHead: ..., $$prevSibling: ..., $$nextSibling: ..., $$watchers: ..., $parent: ..., $$phase: ..., $root: ..., $$destroyed: ..., $$suspended: ..., $$listeners: ..., $$listenerCount: ..., $$watchersCount: ..., $$isolateBindings: ..., $$asyncQueue: ..., $$postDigestQueue: ..., $$applyAsyncQueue: ...}, $$phase: null, $root: Scope{$id: ..., $$childTail: ..., $$childHead: ..., $$prevSibling: ..., $$nextSibling: ..., $$watchers: ..., $parent: ..., $$phase: ..., $root: ..., $$destroyed: ..., $$suspended: ..., $$listeners: ..., $$listenerCount: ..., $$watchersCount: ..., $$isolateBindings: ..., $$asyncQueue: ..., $$postDigestQueue: ..., $$applyAsyncQueue: ...}, $$destroyed: false, $$suspended: false, $$listeners: Object{$destroy: ...}, $$listenerCount: Object{$destroy: ...}, $$watchersCount: 0, $$isolateBindings: null}, attachTo: Object{0: <div ng-app=""></div>, length: 1}, bindToController: true, clickOutsideToClose: false, disableParentScroll: false, escapeToClose: false, focusOnOpen: true, fullscreen: false, hasBackdrop: false, propagateContainerEvents: false, transformTemplate: function() { ... }, trapFocus: false, zIndex: 80, panelClass: 'preset-container', template: '<div>Hello World!</div>'} config: For "should create and open a basic panel" {id: 'panel_1', scope: Scope{$id: 4, $$childTail: null, $$childHead: null, $$prevSibling: null, $$nextSibling: null, $$watchers: null, $parent: Scope{$id: ..., $$childTail: ..., $$childHead: ..., $$prevSibling: ..., $$nextSibling: ..., $$watchers: ..., $parent: ..., $$phase: ..., $root: ..., $$destroyed: ..., $$suspended: ..., $$listeners: ..., $$listenerCount: ..., $$watchersCount: ..., $$isolateBindings: ..., $$asyncQueue: ..., $$postDigestQueue: ..., $$applyAsyncQueue: ...}, $$phase: null, $root: Scope{$id: ..., $$childTail: ..., $$childHead: ..., $$prevSibling: ..., $$nextSibling: ..., $$watchers: ..., $parent: ..., $$phase: ..., $root: ..., $$destroyed: ..., $$suspended: ..., $$listeners: ..., $$listenerCount: ..., $$watchersCount: ..., $$isolateBindings: ..., $$asyncQueue: ..., $$postDigestQueue: ..., $$applyAsyncQueue: ...}, $$destroyed: false, $$suspended: false, $$listeners: Object{$destroy: ...}, $$listenerCount: Object{$destroy: ...}, $$watchersCount: 0, $$isolateBindings: null}, attachTo: Object{0: <div ng-app=""></div>, length: 1}, bindToController: true, clickOutsideToClose: false, disableParentScroll: false, escapeToClose: false, focusOnOpen: true, fullscreen: false, hasBackdrop: false, propagateContainerEvents: false, transformTemplate: function() { ... }, trapFocus: false, zIndex: 80, template: '<div>Hello World!</div>'} config: |
There is certainly something funky here.
|
Ugh, it looks like my build or browser cache got broken somehow. I cleared and restarted things and now this change isn't causing failures. 😕 |
It looks like this caching was working for tooltips (
|
it worked for tooltips but not panels Fixes #10894
Actual Behavior:
What is the issue? *
config.id is 'undefined' for the first run where no config with id is stored yet.
https://github.com/angular/material/blob/v1.1.5/src/components/panel/panel.js#L1160
What is the expected behavior?
The code should use the id in this._config -> this._config.id
AngularJS Versions: *
AngularJS Version:
1.5.xAngularJS Material Version:
from the beginning till 1.1.5Actually this is a bug nobody noticed before and i think it makes no real damage, but it is still a bug.
Before I would make a simple PR I wanted to ask if you see also the problem and if I should make this simple fix the way i described it.
I would like to do my part in stabilizing angularJS material!
Best,
Florian
linking @bradrich as creator of this feature
and @ThomasBurleson as active project-lead of this repo :)
The text was updated successfully, but these errors were encountered: