File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22
22
import * as Blockly from 'blockly' ;
23
23
24
24
import { MRC_STYLE_EVENTS } from '../themes/styles'
25
+ import { createFieldNonEditableText } from '../fields/FieldNonEditableText' ;
25
26
import { Parameter } from './mrc_class_method_def' ;
26
27
import { ExtendedPythonGenerator } from '../editor/extended_python_generator' ;
27
28
import { MUTATOR_BLOCK_NAME , PARAM_CONTAINER_BLOCK_NAME , MethodMutatorArgBlock } from './mrc_param_container'
@@ -177,8 +178,7 @@ const EVENT = {
177
178
this . removeParameterFields ( input ) ;
178
179
this . mrcParameters . forEach ( ( param ) => {
179
180
const paramName = FIELD_PARAM_PREFIX + param . name ;
180
- const field = new Blockly . FieldTextInput ( param . name ) ;
181
- field . EDITABLE = false ;
181
+ const field = createFieldNonEditableText ( param . name ) ;
182
182
input . appendField ( field , paramName ) ;
183
183
} ) ;
184
184
}
You can’t perform that action at this time.
0 commit comments