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

Cannot read properties of undefined (reading 'manager') #851

Open
amk221 opened this issue Jan 4, 2024 · 0 comments
Open

Cannot read properties of undefined (reading 'manager') #851

amk221 opened this issue Jan 4, 2024 · 0 comments

Comments

@amk221
Copy link

amk221 commented Jan 4, 2024

I have a conditional modifier like:

<div
  class="dropdown"
  {{(if this.isOpen (modifier "position-dropdown"))}}
>
  {{yield}}
</div>

I have a method called handleFocusOut, which closes the dropdown when focus leaves the related interactive element. Although I'm not sure that's relevant - rather, I am using scheduleOnce('afterRender to perform the close which I think has something to do with it...

When closed, I see:

runtime.js:3997 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'manager')
    at TransactionImpl.commit (runtime.js:3997:1)
    at EnvironmentImpl.commit (runtime.js:4062:1)
    at inTransaction (runtime.js:4082:1)
    at Renderer._renderRoots (index.js:4957:1)
    at Renderer._renderRootsTransaction (index.js:5001:1)
    at Renderer._revalidate (index.js:5033:1)
    at invoke (backburner.js:280:1)
    at Queue.flush (backburner.js:197:1)
    at DeferredActionQueues.flush (backburner.js:358:1)
    at Backburner._end (backburner.js:798:1)
commit @ runtime.js:3997
commit @ runtime.js:4062
inTransaction @ runtime.js:4082
_renderRoots @ index.js:4957
_renderRootsTransaction @ index.js:5001
_revalidate @ index.js:5033
invoke @ backburner.js:280
flush @ backburner.js:197
flush @ backburner.js:358
_end @ backburner.js:798
end @ backburner.js:589
_run @ backburner.js:842
_join @ backburner.js:819
join @ backburner.js:629
loopEnd @ index.js:4806
_trigger @ backburner.js:896
_end @ backburner.js:811
Backburner._boundAutorunEnd @ backburner.js:523
Promise.then (async)
iterations @ backburner.js:26
flush @ index.js:40
_scheduleAutorun @ backburner.js:964
_end @ backburner.js:804
Backburner._boundAutorunEnd @ backburner.js:523
Promise.then (async)
iterations @ backburner.js:26
flush @ index.js:40
_scheduleAutorun @ backburner.js:964
_end @ backburner.js:804
Backburner._boundAutorunEnd @ backburner.js:523
Promise.then (async)
iterations @ backburner.js:26
flush @ index.js:40
_scheduleAutorun @ backburner.js:964
_end @ backburner.js:804
Backburner._boundAutorunEnd @ backburner.js:523
Promise.then (async)
iterations @ backburner.js:26
flush @ index.js:40
_scheduleAutorun @ backburner.js:964
_end @ backburner.js:804
Backburner._boundAutorunEnd @ backburner.js:523
Promise.then (async)
iterations @ backburner.js:26
flush @ index.js:40
_scheduleAutorun @ backburner.js:964
_end @ backburner.js:804
Backburner._boundAutorunEnd @ backburner.js:523
Promise.then (async)
iterations @ backburner.js:26
flush @ index.js:40
_scheduleAutorun @ backburner.js:964
_ensureInstance @ backburner.js:955
scheduleOnce @ backburner.js:679
scheduleOnce @ index.js:185
handleFocusOut @ index.js:316
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

No branches or pull requests

1 participant