Skip to content

Disable spell check in Firefox #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexeyinkin opened this issue Mar 6, 2023 · 5 comments
Open

Disable spell check in Firefox #197

alexeyinkin opened this issue Mar 6, 2023 · 5 comments
Assignees

Comments

@alexeyinkin
Copy link
Contributor

No description provided.

@alexeyinkin
Copy link
Contributor Author

See also:

Workarounds:

  1. spellCheckConfiguration: const SpellCheckConfiguration.disabled(), does not work.
  2. keyboardType: TextInputType.visiblePassword works but it requires platform check.

TODO:

  1. Investigate what exactly triggers spellcheck in Firefox because the minimal app does not. Describe it here.
  2. File a bug in Flutter.
  3. Make a workaround, likely with TextInputType.visiblePassword.

@yescorp
Copy link
Collaborator

yescorp commented Mar 7, 2023

As I checked, the reason behind spell check trigger is TextField.maxLines property.
If it is set to something, even null, the FireFox will activate the spell check.
As I see, there is no solution of removing some set property of the TextField.

I am going to implement the workaround first, and then send the defect to the flutter team.

@yescorp
Copy link
Collaborator

yescorp commented Mar 7, 2023

Setting keyboardType: TextInputType.visiblePassword breaks the TextField -> it becomes a single line.

I am investigating to find another workaround.

@alexeyinkin
Copy link
Contributor Author

The dummiest thing to do is to set autocomplete="false" with JavaScript on all textareas. This should be done in a timer every few seconds during the whole life of the app to guarantee it will not be cleared on rebuilds.

@yescorp
Copy link
Collaborator

yescorp commented Mar 7, 2023

I created the corresponding issue in Flutter repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants