From e895c8c0f731908ab9c866867efb39a810b28d43 Mon Sep 17 00:00:00 2001 From: Andy Trand Date: Fri, 18 Feb 2022 16:44:38 +0200 Subject: [PATCH] clear toggled style on selection change (#675) --- lib/src/widgets/controller.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/widgets/controller.dart b/lib/src/widgets/controller.dart index 8d52e730..16506c10 100644 --- a/lib/src/widgets/controller.dart +++ b/lib/src/widgets/controller.dart @@ -327,6 +327,7 @@ class QuillController extends ChangeNotifier { _selection = selection.copyWith( baseOffset: math.min(selection.baseOffset, end), extentOffset: math.min(selection.extentOffset, end)); + toggledStyle = Style(); } /// Given offset, find its leaf node in document