feat: unfocus CreateOptionTextField when popover state changes

This commit is contained in:
Cyrine-benabid 2022-10-30 18:27:12 +01:00
parent 1a53a0e375
commit 16a8dbc6ce

View File

@ -289,6 +289,11 @@ class __CreateOptionTextFieldState extends State<_CreateOptionTextField> {
widget.popoverMutex?.close();
}
});
widget.popoverMutex?.listenOnPopoverChanged(() {
if (_focusNode.hasFocus) {
_focusNode.unfocus();
}
});
}
@override