Defer FileUpload's synthetic visibilitychange out of its own ResizeObserver callback (#20462)

* Fix FileUpload visibility observer re-entry

* Build FileUpload assets

Co-authored-by: Amp <amp@ampcode.com>

---------

Co-authored-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Jasper Tey
2026-09-08 08:47:16 +01:00
committed by GitHub
co-authored by Amp Dan Harrin
parent 6f039b0fea
commit ec8a6d5afc
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
@@ -137,7 +137,7 @@ export default function fileUploadFormComponent({
if (!this.pond) {
this.init()
} else {
document.dispatchEvent(new Event('visibilitychange'))
requestAnimationFrame(() => document.dispatchEvent(new Event('visibilitychange')))
}
}