Stay organized with collections Save and categorize content based on your preferences.

blockly > FieldTextInput > doValueInvalid_

FieldTextInput.doValueInvalid_() method

Called by setValue if the text input is not valid. If the field is currently being edited it reverts value of the field to the previous value while allowing the display text to be handled by the htmlInput_.

Signature:

protected doValueInvalid_(_invalidValue: any): void;

Parameters

Parameter Type Description
_invalidValue any The input value that was determined to be invalid. This is not used by the text input because its display value is stored on the htmlInput_.

Returns:

void