-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
paper-select causes the app to become unresponsive #925
Comments
I did experience the "click multiple times to make a selection". Like I had to click exactly on the label's text and not anywhere else, but since it was hard to reproduce easily I gave up trying to figure out why. For the options list that appears above the expected location it may have been recently fixed (#895). |
@panthony Thanks! Nice find on #895. I'll cross that off my list of potentially related things. I'm still digging into my original issue. And I've made an additional observation... sometimes the |
I've traced this into Anyone have ideas as to why the callback never fires? Or advice on how to debug this further? |
Maybe it's cleared before being called? https://github.com/peec/ember-css-transitions/blob/master/addon/mixins/transition-mixin.js#L185 |
@panthony that was my thought too. I added a console statement there and it isn't called. |
To be doubly sure, I setup a debugger to trigger only if the 'timeout' event returned by the |
When I can get the app into the error state there are hundreds of timers in backburner's
Or this one
I've turned on Does this create any additional ideas for anyone? |
It may be a regression in the backburner introduced in 3.1. Looking at ember changelog there was one that one reverted in |
I've been working on an Ember 3.0 app today and saw the same issue. (original post is updated) |
I built a cordova app using ember paper and I had to extend quite a few components to make it more mobile friendly, one of those components was paper-backdrop, because I too had the issue described before with the backdrop when opening and closing the sidenav, I thought it was because I added a Hammer swipe event listener to close/open the sidenav, something related to ghost clicks, but now that I see others with the issue I feel a little of relief "?", to be honest I didn't had much time to dig in, but I manage to solve it (not sure why) by extending the paper-backdrop and overriding the func addDestroyedElementClone(/original, clone/) {} notice there's no this._super(...arguments). Hope it helps. |
@betocantu93 Thanks for chiming in with your observation. Two questions for you...
paper-backdrop's definition is...
The super class definition (from ember-css-transitions
|
@chbonser answering your questions
I didn't read the |
@betocantu93 Thanks for the extra details! This morning I tried the empty method for My suspicion is that backburner's timers queue is getting jacked up and stops calling timers and the app is off the rails after that. |
I've upgraded to Ember 3.3 and can no longer create the issue. I don't know for sure but I suspect that backburner's 'new microtask-based autorun architecture' may have resolve the issue. It was included in ember since 3.2.0-beta.1. Related backburner issue... BackburnerJS/backburner.js#332 I'm going to close this issue for now. We can reopen it if someone experiences the issue with Ember 3.2+ |
I think I'm seeing this on 3.3.2 with |
I am also experiencing this in ember 3.3.2 |
My biggest struggle with this issue is how hard it was to reproduce. If someone can provide a way to consistently reproduce the issue, I'm willing to look into it with you (I'm 'cbonser' on the Ember community discord). |
Same problema here, any workaround? |
I found a few more that I think might have worked but then I got into some vortex of breakage, possibly the same mentioned here: adopted-ember-addons/ember-paper#925 I’m updating everything I can that works with no modifications before I try to update Ember etc.
I'm reproducing it with
I feels like it happens when I click somewhere before the opening transition is completed but it does not happen constantly. But I can't recall a time where I go stuck by clicking anywhere once the menu was properly opened. |
I noticed that paper-backdrop has Maybe implementing this property would, at least, bypass the issue for But i'm not sure if this property was expected to be done in |
I noticed that // addon/components/paper-backdrop.js
shouldTransition: bool('opaque'),
transitionName: computed('shouldTransition', function() {
// TransitionMixin is NoOp if transitionName is not given
return this.get('shouldTransition') ? 'ng' : null;
}), |
@panthony - I followed your lead with the transitionName and I've noticed my problems are gone. I was noticing this issue intermittently but recently I've added quite a few components that would possibly use backdrop (sidebar, a paper-menu, etc). It wasn't until I render multiple multiple menus that I really saw this happen reliably. I've not really looked into how that backdrop is managed but just reporting my findings and confirming what @panthony commented above. Tested On: Chrome Version 72.0.3626.121 |
…e background (like paper-menu) see issue adopted-ember-addons#925
This has some failures that I’ve “fixed” with this hack: adopted-ember-addons/ember-paper#925 (comment) It has other test failures that are skipped in a forthcoming commit.
Occasionally (5 or 10% of the time)
paper-select
causes my app to become unresponsive.When this occurs the
#ember-basic-dropdown-wormhole
contains both anmd-backdrop
element and a div for the dropdown content#ember-basic-dropdown-content-...
.The content div returns the following from
getBoundingClientRect()
, making it invisible and unclickable:The
md-backdrop
element masks the rest of the app and does not respond to clicks making the app unresponsive. There are no errors in the console.The only other unusual thing about this use case is that the drop down exists in a modal (which animates open) which has tabs (with animations between tabs). Could the animation of the parent context be causing this bug?
Related (?) Bugs
This was observed with both Ember 3.0.0 and 3.1 applications.
I'm also usingpaper-select
with a 3.0 application and this behavior does not occurI do sometimes experience two other issues which I'll write up separately:
The text was updated successfully, but these errors were encountered: