diff --git a/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart b/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart index b0e70a95..a6920867 100644 --- a/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart +++ b/packages/reactive_flutter_typeahead/lib/src/reactive_cupertino_typeahead.dart @@ -145,6 +145,7 @@ class ReactiveCupertinoTypeAhead extends ReactiveFormField { } return CupertinoTypeAheadField( + controller: controller, suggestionsCallback: suggestionsCallback, itemBuilder: itemBuilder, onSelected: (value) { @@ -162,7 +163,7 @@ class ReactiveCupertinoTypeAhead extends ReactiveFormField { return CupertinoTextField( controller: controller, focusNode: focusNode, - enabled: enabled, + enabled: field.control.enabled, decoration: decoration, padding: padding, placeholder: placeholder, diff --git a/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart b/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart index a2e9416f..527f604a 100644 --- a/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart +++ b/packages/reactive_flutter_typeahead/lib/src/reactive_typeahead.dart @@ -118,6 +118,7 @@ class ReactiveTypeAhead extends ReactiveFormField { TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, TextEditingController? textEditingController, + TextInputAction? textInputAction, bool autofocus = false, bool readOnly = false, bool? showCursor, @@ -143,6 +144,7 @@ class ReactiveTypeAhead extends ReactiveFormField { } return TypeAheadField( + controller: controller, suggestionsCallback: suggestionsCallback, itemBuilder: itemBuilder, onSelected: (value) { @@ -171,6 +173,7 @@ class ReactiveTypeAhead extends ReactiveFormField { textDirection: textDirection, textAlign: textAlign, textAlignVertical: textAlignVertical, + textInputAction: textInputAction, autofocus: autofocus, readOnly: readOnly, showCursor: showCursor,