-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
check whether document.body.addEventListener
exist
#2387
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@KairuiLiu is attempting to deploy a commit to the Tailwind Labs Team on Vercel. A member of the Team first needs to authorize it. |
As far as I can tell |
@RobinMalfait Should we wrap history listener setup in a |
delay the event listener to document ready seems a good idea see: #2389 |
@thecrypticace if the delay is safe and guaranteed than this is good in my opinion. I don't think we want the ability to customize this behaviour. |
@RobinMalfait It is. It may have fired before script runs but if it has then the readyState of the document will no longer be Closing in favor of #2389 |
if Dialog component is used in shadowDOM, browser will throw an error
which is because
document.body === null
, but we only check whetherdocument.body === undefined