-
Notifications
You must be signed in to change notification settings - Fork 764
ClrPopoverContent rootNodes of undefined
when opening/closing popup
#4430
Comments
In case you're wondering what our use case is: |
Thanks for the report, we'll investigate further. |
Hi @BramMeerten, do you have Ivy enabled in your app? If yes, that's related to Angular's regression error: angular/angular#35967 |
Hey @Shijir , thanks for your response, I'm using Ivy, but I'm not convinced this is the same problem.
But in this case view is just
Step 4 is after step 3 because of the I added some logging to verify this:
This is the output:
|
@Shijir , did you get a chance to look at my comment? Do you agree this is a different bug? @gnomeontherun I'd like to fix this and create a pull request, here is the proposal: SummaryWhen handling the content-check events in the This change does not introduce a new behavior. ExamplesIt would look something like this:
API/ Implementation PlanOnly one file needs to be updated + a tests needs to be written. This is a low impact change. ConclusionI don't expect this to take very long to implement, the code change is very simple. The most work will be the test, but I already have an example in my original post. |
@BramMeerten We'd be happy to see a PR for this, I agree the check is sensible but writing a good test is the hard part. |
Hey @gnomeontherun, I created a test + fix. |
A topic branch isn't needed to make a PR, its only for long running collaborative contributions with a lots of iteration. You can make a PR from your own branch against master as the fastest solution here. |
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <mbram1@its.jnj.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: #4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: vmware-archive#4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Close: #4430 Signed-off-by: Bram Meerten <bram.mee@gmail.com>
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary. |
Describe the bug
When opening and closing a popover synchronously, we get the following error since clarity 3.0.0:
TypeError: Cannot read property 'rootNodes' of undefined
This is caused by the code change on this line:
By the time the code is triggered, the popup is already closed (because of
debounceTime
) andthis.view
is undefined, causing an error.How to reproduce
Can be reproduced with the following test:
Expected behavior
The code should check if
view
is still defined.alignContent
already has this check, but should also be added forrenderer.setStyle
:Versions
App
The text was updated successfully, but these errors were encountered: