-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#38011Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsbrowser: edgeonly manifests in Edge (Chromium-based)only manifests in Edge (Chromium-based)c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-webWeb applications specificallyWeb applications specifically
Description
Hello, I'm having an issue while trying to create a custom password field using a FormTextField. I've set up a suffixIcon with the action to toggle the obscureText property. It works great on Chrome, but Edge displays a password reveal control.
How to reproduce:
TextFormField(
...
obscureText: obscureText,
obscuringCharacter: obscuringCharacter,
decoration: InputDecoration(
suffixIcon: GestureDetector(
onTap: () {
...
obscureText = !obscureText;
}),
),
)
Actual
Expected
I'm missing a way to easily disable this feature. Or maybe it might just be always disabled?
Workaround
Inject this CSS styling using
final nodeValidatorBuilder = NodeValidatorBuilder.common()
..allowElement('style');
document.querySelector('head')?.insertAdjacentHtml(
'beforeend',
'''
<style>
input::-ms-reveal,
input::-ms-clear{
display: none;
}
</style>
''',
validator: nodeValidatorBuilder,
);
}
Aravinthan-Subramanian, jvincek-nth, guidotheelen, imertgul, 0blaze and 2 morerubenbrits and guidotheelen
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsbrowser: edgeonly manifests in Edge (Chromium-based)only manifests in Edge (Chromium-based)c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-webWeb applications specificallyWeb applications specifically
