From a797afe727a53bf7ef72b400e97311b33ec70825 Mon Sep 17 00:00:00 2001
From: Arnoud Beekman <arnoud.beekman@mediact.nl>
Date: Mon, 22 Jan 2018 11:41:09 +0100
Subject: [PATCH] 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.
---
 .../frontend/web/js/view/configure/product-customer-data.js    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/code/Magento/Checkout/view/frontend/web/js/view/configure/product-customer-data.js b/app/code/Magento/Checkout/view/frontend/web/js/view/configure/product-customer-data.js
index a612b5e2dc6..d7a81decbad 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/view/configure/product-customer-data.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/view/configure/product-customer-data.js
@@ -1,6 +1,7 @@
 require([
     'jquery',
-    'Magento_Customer/js/customer-data'
+    'Magento_Customer/js/customer-data',
+    'domReady!'
 ], function ($, customerData) {
     'use strict';
 
-- 
GitLab