remove on select from mih dropdown. as it is not required
This commit is contained in:
@@ -6,7 +6,7 @@ class MIHDropdownField extends StatefulWidget {
|
|||||||
final String hintText;
|
final String hintText;
|
||||||
final bool required;
|
final bool required;
|
||||||
final List<String> dropdownOptions;
|
final List<String> dropdownOptions;
|
||||||
final void Function(String?)? onSelect;
|
// final void Function(String?)? onSelect;
|
||||||
final bool editable;
|
final bool editable;
|
||||||
|
|
||||||
const MIHDropdownField({
|
const MIHDropdownField({
|
||||||
@@ -16,7 +16,7 @@ class MIHDropdownField extends StatefulWidget {
|
|||||||
required this.dropdownOptions,
|
required this.dropdownOptions,
|
||||||
required this.required,
|
required this.required,
|
||||||
required this.editable,
|
required this.editable,
|
||||||
this.onSelect,
|
// this.onSelect,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -59,6 +59,7 @@ class _MIHDropdownFieldState extends State<MIHDropdownField> {
|
|||||||
setState(() {
|
setState(() {
|
||||||
startup = false;
|
startup = false;
|
||||||
});
|
});
|
||||||
|
// widget.onSelect;
|
||||||
}
|
}
|
||||||
|
|
||||||
String? get _errorText {
|
String? get _errorText {
|
||||||
@@ -124,10 +125,8 @@ class _MIHDropdownFieldState extends State<MIHDropdownField> {
|
|||||||
errorText: _errorText,
|
errorText: _errorText,
|
||||||
|
|
||||||
focusNode: _focus,
|
focusNode: _focus,
|
||||||
onSelected: (_) {
|
onSelected: (selected) {
|
||||||
setState(() {
|
_onFocusChange();
|
||||||
startup = false;
|
|
||||||
});
|
|
||||||
// if (widget.editable == false) {
|
// if (widget.editable == false) {
|
||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user