Skip to content

Commit 84dbb3f

Browse files
Merge pull request #1493 from mvarendorff2/fix/dropdown-hint-missing
fix: #1447 Dropdown Hint missing
2 parents 483f02f + 525f65e commit 84dbb3f

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
@@ -295,6 +295,7 @@ class FormBuilderDropdown<T> extends FormBuilderFieldDecoration<T> {
295295
final hasValue = items.map((e) => e.value).contains(field.value);
296296
return InputDecorator(
297297
decoration: state.decoration,
298+
isEmpty: !hasValue,
298299
child: DropdownButton<T>(
299300
menuWidth: menuWidth,
300301
padding: padding,

0 commit comments

Comments
 (0)