mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
fix: Don't spellcheck number fields. (#6698)
For the most part spellcheckers ignore numbers so this isn't an issue. But (for example) 'Infinity' is an English word that's hardcoded into Blockly, and other languages may spellcheck it as wrong.
This commit is contained in:
@@ -47,6 +47,9 @@ export class FieldNumber extends FieldInput<number> {
|
||||
*/
|
||||
override SERIALIZABLE = true;
|
||||
|
||||
/** Don't spellcheck numbers. Our validator does a better job. */
|
||||
protected override spellcheck_ = false;
|
||||
|
||||
/**
|
||||
* @param opt_value The initial value of the field. Should cast to a number.
|
||||
* Defaults to 0. Also accepts Field.SKIP_SETUP if you wish to skip setup
|
||||
|
||||
Reference in New Issue
Block a user