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 2222import * as Blockly from 'blockly' ;
2323
2424import { MRC_STYLE_EVENTS } from '../themes/styles'
25+ import { createFieldNonEditableText } from '../fields/FieldNonEditableText' ;
2526import { Parameter } from './mrc_class_method_def' ;
2627import { ExtendedPythonGenerator } from '../editor/extended_python_generator' ;
2728import * as paramContainer from './mrc_param_container'
@@ -165,8 +166,7 @@ const EVENT = {
165166 this . removeParameterFields ( input ) ;
166167 this . mrcParameters . forEach ( ( param ) => {
167168 const paramName = FIELD_PARAM_PREFIX + param . name ;
168- const field = new Blockly . FieldTextInput ( param . name ) ;
169- field . EDITABLE = false ;
169+ const field = createFieldNonEditableText ( param . name ) ;
170170 input . appendField ( field , paramName ) ;
171171 } ) ;
172172 }
You can’t perform that action at this time.
0 commit comments