Closed petlyh closed 1 month ago
Description
Elements that are added inside an svg element after the initial page load are not visible.
svg
Steps To Reproduce
StatefulComponent
Expected Behavior
The new elements are shown when the component is rebuilt.
Actual Behavior
The new elements are not rendered despite being added to the DOM and appearing in the browser's inspector panel.
Additional Context
Happens on both Firefox and Chrome.
Doctor Output
[✓] Jaspr CLI (Version 0.12.0) • Dart Version 3.3.3 (stable) (Tue Mar 26 14:21:33 2024 +0000) on "windows_x64" at dart • Running on windows "Windows 10 Pro" 10.0 (Build 19045) - Locale nb-NO • Analytics: Enabled [✓] Current Project • Dependencies on core packages: • jaspr: ^0.12.0 • jaspr_builder: ^0.12.0 (dev) • Rendering mode: client • Uses jaspr compilers: false • Uses flutter embedding: false
Fixed in v0.13.1
v0.13.1
Description
Elements that are added inside an
svg
element after the initial page load are not visible.Steps To Reproduce
StatefulComponent
that mutates state in such a way that new elements are added inside ansvg
element when it is rebuilt.Minimal reproducible example
https://github.com/schultek/jaspr/assets/88139840/4a9fb7b0-ec05-4cb8-a0f3-a6717d15a9fb ```dart import 'package:jaspr/jaspr.dart'; class App extends StatefulComponent { const App(); @override StateExpected Behavior
The new elements are shown when the component is rebuilt.
Actual Behavior
The new elements are not rendered despite being added to the DOM and appearing in the browser's inspector panel.
Additional Context
Happens on both Firefox and Chrome.
Doctor Output