Skip to content

Don't update the DOM if the toggle has been removed#1

Open
scottmessinger wants to merge 1 commit intomasterfrom
handle-null-elements
Open

Don't update the DOM if the toggle has been removed#1
scottmessinger wants to merge 1 commit intomasterfrom
handle-null-elements

Conversation

@scottmessinger
Copy link
Copy Markdown
Member

Currently, if the toggle causes the element to be removed from the DOM, the code that updates the DOM fails with TypeError: Cannot read property 'querySelector' of null

Currently, if the toggle causes the element to be removed from the DOM, the code that updates the DOM fails with `TypeError: Cannot read property 'querySelector' of null`
@mweidner037
Copy link
Copy Markdown

Now (in version 9.0.3) Ember yells at us if a rerender during cleanup accesses a computed property (in our app, it's isOn).

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.

2 participants