mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[macOS] Fix IME input issue caused on FlutterTextInputPlugin dealloc. (flutter/engine#31879)
This commit is contained in:
parent
7091374286
commit
1da38af2ce
@ -235,11 +235,6 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base,
|
||||
|
||||
- (void)dealloc {
|
||||
[_channel setMethodCallHandler:nil];
|
||||
if (_textInputContext) {
|
||||
[_textInputContext deactivate];
|
||||
[_textInputContext discardMarkedText];
|
||||
_textInputContext = nil;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Private
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user