-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Fix a few more SSR problems #35165
Fix a few more SSR problems #35165
Conversation
Thank you @xvaara ❤️ |
4a78b80
to
dd315ad
Compare
@xvaara please don't include any dist files. Also, try to rebase your branch. If you can't, just let me know and I'll do the rebase (just please make sure you don't overwrite the changes) |
87b3fdb
to
47d96a7
Compare
dd315ad
to
d49a667
Compare
47d96a7
to
a3518e0
Compare
d49a667
to
426235a
Compare
a3518e0
to
aaf41b3
Compare
@@ -150,7 +150,7 @@ function normalizeParams(originalTypeEvent, handler, delegationFn) { | |||
} | |||
|
|||
function addHandler(element, originalTypeEvent, handler, delegationFn, oneOff) { | |||
if (typeof originalTypeEvent !== 'string' || !element) { | |||
if (typeof originalTypeEvent !== 'string' || !element || !element.addEventListener) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xvaara can you define the reason of this change?
@@ -321,7 +321,7 @@ const getWindow = () => { | |||
* @return {document|{}} The proper element | |||
*/ | |||
const getDocument = () => { | |||
return typeof document !== 'undefined' ? document : {} | |||
return typeof document !== 'undefined' ? document : { documentElement: {} } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xvaara can you define the reason of this change, too?
Closing it as not answered. The focusTrap changes transferred to #34989 |
I did answer... ? @GeoSot are the review comment replies not the right place to answer? |
* upstream/jo-ssr-friendly: some updates on focustrap (based on twbs#35165) Move ESLint config to an override add swipe, add @doc use a ternary Be SSR friendly when accessing DOM objects Fix spacing utility classes mentioned in navbar supported content documentation (twbs#35328) README.md remove broken "David DM" dependency badges (twbs#35313) Update import stacks required for modifying utilities (twbs#35320) Add top placement info to offcanvas docs
Tested SSR render with bootstrap-vue-3. Found these.