mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-16 15:42:48 +08:00
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:
co-authored by
Amp
Dan Harrin
parent
6f039b0fea
commit
ec8a6d5afc
+1
-1
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')))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user