Description
- Before posting an issue, read the FAQ and search the previous issues.
Description
I have a pretty dense SPA superform component that throws an error from EnhancedForm_destroy
, because of Uncaught (in promise) TypeError: EnhancedForm.remove is not a function
.
It seems that EnhancedForm
is expected to be a HTMLElement with a remove()
method. This is fine on Chrome.
However, on Firefox, there is no remove()
method - I believe it is a DOM Node.
EDIT: I have reproduced on both Chrome and Firefox.
2024-11-02.16-57-54.mp4
The error is bubbling from here:
sveltekit-superforms/src/lib/client/superForm.ts
Lines 1395 to 1400 in ae643b2
sveltekit-superforms/src/lib/client/superForm.ts
Lines 542 to 552 in ae643b2
If applicable, a MRE
Apologies, I have attempted to reproduce in a minimal REPL, but I have been unable to.
Discovered error on sveltekit-superforms
v2.12.3, attempted to upgrade to sveltekit-superforms
, v2.19.1 and issue is still occurring.
Firefox version 126.0 (64-bit)
Chrome Version 128.0.6613.137