Skip to content

Commit a797afe

Browse files
committed
Add the domReady! statement
The jquery selector sometimes (depending on the amount of javascript files) returns no values because the DOM is not ready when the script is executed. By adding the domReady! statement in the require part we are sure that when the jQuery selector is being filled the DOM is ready.
1 parent d0b82cc commit a797afe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/configure/product-customer-data.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require([
22
'jquery',
3-
'Magento_Customer/js/customer-data'
3+
'Magento_Customer/js/customer-data',
4+
'domReady!'
45
], function ($, customerData) {
56
'use strict';
67

0 commit comments

Comments
 (0)