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

Commit 6b64a5c

Browse files
author
Nurhan Turgut
committed
enabling spellcheck for text editing
1 parent 48bb77c commit 6b64a5c

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

lib/web_ui/lib/src/engine/dom_renderer.dart

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -316,22 +316,7 @@ flt-glass-pane * {
316316
// apps fully specifies their text styles.
317317
setElementStyle(bodyElement, 'font', defaultCssFont);
318318
setElementStyle(bodyElement, 'color', 'red');
319-
320-
// TODO(flutter_web): send the location during the scroll for more frequent
321-
// location updates from the framework. Remove spellcheck=false property.
322-
/// The spell check is being disabled for now.
323-
///
324-
/// Flutter web is positioning the input box on top of editable widget.
325-
/// This location is updated only in the paint phase of the widget.
326-
/// It is wrong during the scroll. It is not important for text editing
327-
/// since the content is already invisible. On the other hand, the red
328-
/// indicator for spellcheck gets confusing due to the wrong positioning.
329-
/// We are disabling spellcheck until the location starts getting updated
330-
/// via scroll. This is possible since we can listen to the scroll on
331-
/// Flutter.
332-
/// See [HybridTextEditing].
333-
bodyElement.spellcheck = false;
334-
319+
335320
for (html.Element viewportMeta
336321
in html.document.head.querySelectorAll('meta[name="viewport"]')) {
337322
if (assertionsEnabled) {

0 commit comments

Comments
 (0)