Skip to content

Commit 170b376

Browse files
Merge pull request #1493 from mvarendorff2/fix/dropdown-hint-missing
fix: #1447 Dropdown Hint missing
1 parent 9a46142 commit 170b376

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/fields/form_builder_dropdown.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ class FormBuilderDropdown<T> extends FormBuilderFieldDecoration<T> {
296296
final hasValue = items.map((e) => e.value).contains(field.value);
297297
return InputDecorator(
298298
decoration: state.decoration,
299+
isEmpty: !hasValue,
299300
child: DropdownButton<T>(
300301
menuWidth: menuWidth,
301302
padding: padding,

0 commit comments

Comments
 (0)