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

[PM-8133] Ensure field element exist to setup listener on it #9176

Closed

Conversation

noefleury
Copy link

@noefleury noefleury commented May 14, 2024

Fix #9175

Note that I've didn't add a test there as I don't really know how to do it properly for this fix, but let me know if you think that we should.

@noefleury noefleury requested a review from a team as a code owner May 14, 2024 14:57
@CLAassistant
Copy link

CLAassistant commented May 14, 2024

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-8133

@bitwarden-bot bitwarden-bot changed the title Ensure field element exist to setup listener on it [PM-8133] Ensure field element exist to setup listener on it May 14, 2024
@noefleury noefleury marked this pull request as draft May 14, 2024 15:06
@noefleury noefleury marked this pull request as ready for review May 14, 2024 21:29
@cagonzalezcs
Copy link
Contributor

@noefleury Thank you for your submission.

Hmm.... as I mentioned in your Github issue last week, if a field for some reason is not cached, we shouldn't attempt to assert that the element is a viewable form field. The intersection observer should only act in the context of cached elements.

That said, a fix for this has been included in the work for #9279

Closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field undefined when trying to listen on it
4 participants