File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ function initScenarioEditorEvents() {
744
744
scenarioContainer . off ( 'focus' , ':input' ) . on ( 'focus' , ':input' , function ( ) {
745
745
blocFocusing ( $ ( this ) , false ) ;
746
746
if ( $ ( this ) . closest ( ".expression" ) . find ( ".expressionAttr[data-l1key='type']" ) . filter ( function ( ) {
747
- return this . value == 'condition'
747
+ return this . value == 'condition' || this . value == 'code'
748
748
} ) . length == 0 ) {
749
749
BLOC_LAST_FOCUS = false ;
750
750
} else {
@@ -2468,7 +2468,7 @@ function blocFocusing(bloc, onlyBloc) {
2468
2468
BLOC_FOCUS . addClass ( "scenario-bloc-focused" ) ;
2469
2469
if ( ! onlyBloc ) {
2470
2470
if ( bloc . closest ( ".expression" ) . find ( ".expressionAttr[data-l1key='type']" ) . filter ( function ( ) {
2471
- return this . value == 'condition'
2471
+ return this . value == 'condition' || this . value == 'code'
2472
2472
} ) . length == 0 ) {
2473
2473
ACTION_FOCUS = bloc . closest ( '.expression' ) ;
2474
2474
ACTION_FOCUS . addClass ( "scenario-action-focused" ) ;
You can’t perform that action at this time.
0 commit comments