Skip to content

Commit 3cf217f

Browse files
feat: remove unique key from form widgets
1 parent 5de8b9c commit 3cf217f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

lib/src/fields/form_builder_chips_input.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class FormBuilderChipsInput<T> extends FormBuilderField<List<T>> {
7474
final state = field as FormBuilderChipsInputState<T>;
7575

7676
return ChipsInput<T>(
77-
key: UniqueKey(),
7877
initialValue: field.value!,
7978
enabled: state.enabled,
8079
decoration: state.decoration,

lib/src/fields/form_builder_searchable_dropdown.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ class FormBuilderSearchableDropdown<T> extends FormBuilderField<T> {
161161
final state = field as FormBuilderSearchableDropdownState<T>;
162162
return DropdownSearch<T>(
163163
// Hack to rebuild when didChange is called
164-
key: UniqueKey(),
165164
asyncItems: asyncItems,
166165
clearButtonProps: clearButtonProps ??
167166
ClearButtonProps(isVisible: showClearButton),

0 commit comments

Comments
 (0)