Skip to content

Commit 4a44ec9

Browse files
committed
MC-15094: When switch to specific store view - field Price not disabled but checkbox "Use Default Value" is checked
1 parent 0ce888b commit 4a44ec9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components/price-configurable.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ define([
1111

1212
return Abstract.extend({
1313
defaults: {
14-
listens: {
15-
isConfigurable: 'handlePriceValue'
16-
},
1714
imports: {
1815
isConfigurable: '!ns = ${ $.ns }, index = configurable-matrix:isEmpty'
1916
},
@@ -27,6 +24,10 @@ define([
2724
this._super();
2825
// resolve initial disable state
2926
this.handlePriceValue(this.isConfigurable);
27+
// add listener to track "configurable" type
28+
this.setListeners({
29+
isConfigurable: 'handlePriceValue'
30+
});
3031

3132
return this;
3233
},

0 commit comments

Comments
 (0)