Skip to content

Commit

Permalink
fix: reset TextEditingController to prevent use after disposal (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd authored Aug 20, 2024
1 parent f767216 commit 22b4805
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/shared/json_schema_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class JsonSchemaForm extends HookWidget {

useEffect(
() {
formState.value = {};

if (properties != null) {
properties.forEach((key, value) {
final valueMap = value as Map<String, dynamic>;
Expand Down

0 comments on commit 22b4805

Please sign in to comment.