Switch iOS keyboard type if required (flutter/engine#3400)

Ensure that the text input keyboard is reloaded if the view keyboardType
changes.
This commit is contained in:
Chris Bracken
2017-02-07 18:01:19 -08:00
committed by GitHub
parent ea582e5d36
commit e85df21b83

View File

@@ -197,6 +197,7 @@ static UIKeyboardType ToUIKeyboardType(NSString* inputType) {
- (void)setTextInputClient:(int)client withConfiguration:(NSDictionary*)configuration {
_view.keyboardType = ToUIKeyboardType(configuration[@"inputType"]);
[_view setTextInputClient:client];
[_view reloadInputViews];
}
- (void)setTextInputEditingState:(NSDictionary*)state {