[web] Fix text field actions not triggered on Android (flutter/engine#33298)
This commit is contained in:
@@ -103,7 +103,7 @@ class TextInputType extends EngineInputType {
|
||||
const TextInputType();
|
||||
|
||||
@override
|
||||
String get inputmodeAttribute => 'text';
|
||||
String? get inputmodeAttribute => null;
|
||||
}
|
||||
|
||||
/// Numeric input type.
|
||||
|
||||
@@ -450,8 +450,8 @@ Future<void> testMain() async {
|
||||
sendFrameworkMessage(codec.encodeMethodCall(clearClient));
|
||||
}
|
||||
|
||||
String getEditingInputMode() {
|
||||
return textEditing!.strategy.domElement!.getAttribute('inputmode')!;
|
||||
String? getEditingInputMode() {
|
||||
return textEditing!.strategy.domElement!.getAttribute('inputmode');
|
||||
}
|
||||
|
||||
setUp(() {
|
||||
@@ -1815,7 +1815,7 @@ Future<void> testMain() async {
|
||||
textEditing = HybridTextEditing();
|
||||
|
||||
showKeyboard(inputType: 'text');
|
||||
expect(getEditingInputMode(), 'text');
|
||||
expect(getEditingInputMode(), null);
|
||||
|
||||
showKeyboard(inputType: 'number');
|
||||
expect(getEditingInputMode(), 'numeric');
|
||||
@@ -1850,7 +1850,7 @@ Future<void> testMain() async {
|
||||
textEditing = HybridTextEditing();
|
||||
|
||||
showKeyboard(inputType: 'text');
|
||||
expect(getEditingInputMode(), 'text');
|
||||
expect(getEditingInputMode(), null);
|
||||
|
||||
showKeyboard(inputType: 'number');
|
||||
expect(getEditingInputMode(), 'numeric');
|
||||
|
||||
Reference in New Issue
Block a user