Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d9da08f

Browse files
review
1 parent 0c2d559 commit d9da08f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shell/platform/darwin/ios/framework/Source/FlutterUndoManagerPlugin.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ - (void)setUndoState:(NSDictionary*)dictionary API_AVAILABLE(ios(9.0)) {
106106
// will not show up until the next keystroke (or other trigger).
107107
UITextInputAssistantItem* assistantItem =
108108
_viewController.engine.textInputPlugin.textInputView.inputAssistantItem;
109-
NSArray<UIBarButtonItemGroup*>* leadingGroups = assistantItem.leadingBarButtonGroups;
110-
assistantItem.leadingBarButtonGroups = @[];
111-
assistantItem.leadingBarButtonGroups = leadingGroups;
109+
assistantItem.leadingBarButtonGroups = assistantItem.leadingBarButtonGroups;
112110
}
113111
[self undoManager].groupsByEvent = groupsByEvent;
114112
}

0 commit comments

Comments
 (0)