Merge pull request #888 from AppFlowy-IO/fix/disable_overlay_focus_node

fix: disable flowyoverly focusNode
This commit is contained in:
Nathan.fooo 2022-08-22 22:13:27 +08:00 committed by GitHub
commit c532fd4124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,9 @@ class FlowyOverlayState extends State<FlowyOverlay> {
Widget build(BuildContext context) {
final overlays = _overlayList.map((item) {
var widget = item.widget;
item.focusNode.requestFocus();
// requestFocus will cause the children weird focus behaviors.
// item.focusNode.requestFocus();
if (item.delegate?.asBarrier() ?? false) {
widget = Container(
color: style.barrierColor,