File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ define([
12
12
return Abstract . extend ( {
13
13
defaults : {
14
14
listens : {
15
- isConfigurable : 'handlePriceVisibility '
15
+ isConfigurable : 'handlePriceValue '
16
16
} ,
17
17
imports : {
18
18
isConfigurable : '!ns = ${ $.ns }, index = configurable-matrix:isEmpty'
@@ -44,11 +44,16 @@ define([
44
44
return this ;
45
45
} ,
46
46
47
- handlePriceVisibility : function ( isConfigurable ) {
47
+ /**
48
+ * Disable and clear price if product type changed to configurable
49
+ *
50
+ * @param {String } isConfigurable
51
+ */
52
+ handlePriceValue : function ( isConfigurable ) {
48
53
if ( isConfigurable ) {
49
54
this . disable ( ) ;
50
55
this . clear ( ) ;
51
56
}
52
57
}
53
58
} ) ;
54
- } ) ;
59
+ } ) ;
You can’t perform that action at this time.
0 commit comments