You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a node content type with a Date input field and a field with unlimited "Allowed number of values". For example a URL input field.Select view widget for Date field as "Date and time" which applies the Datepicker input for the Date field.
Make the node access public or authorized in order to use oe_theme in the frontend as a signed-in user.
Next, open the node edit form. Input a date with the Datepicker field and then click on "Add" button to add an extra field input for the multivalue field ( For example add 2 URLs in the node ).
Result: The form will produce the JS error: ecl-ec.js?r74vg1:2 Uncaught RangeError: Maximum call stack size exceeded.
After a while the form page becomes unresponsive and the browser window crashes.
In our case, we are using a Publication node type with a publication date input field and a multivalue Paragraph field "Author".
The text was updated successfully, but these errors were encountered:
We've faced this as well, IIRC it's due to bigpipe.
custom_module.module
/**
* Implements hook_library_info_alter().
*/
function custom_module_library_info_alter(&$libraries, $extension) {
if ($extension == "oe_theme") {
$path = \Drupal::service('module_handler')->getModule('custom_module')->getPath();
// Override ecl_datepicker because it breaks in authored on date field.
if (isset($libraries['ecl_datepicker'])) {
unset($libraries['ecl_datepicker']['js']['js/ecl_datepicker.js']);
$libraries['ecl_datepicker']['js']["/{$path}/ecl_datepicker_patch.js"] = [];
}
}
}
ecl_datepicker_patch.js
/**
* @file
* ECL Datepicker initializer.
*/
(function (ECL, Drupal) {
Drupal.behaviors.eclDatepicker = {
attach: function attach(context, settings) {
if (context === document) {
var elements = document.querySelectorAll('[data-ecl-datepicker-toggle]');
for (var i = 0; i < elements.length; i++) {
var datepicker = new ECL.Datepicker(elements[i], {
format: settings.oe_theme.ecl_datepicker_format
});
datepicker.init();
}
}
}
};
})(ECL, Drupal);
The js version in the following link would probably work too. #646
Create a node content type with a Date input field and a field with unlimited "Allowed number of values". For example a URL input field.Select view widget for Date field as "Date and time" which applies the Datepicker input for the Date field.
Make the node access public or authorized in order to use oe_theme in the frontend as a signed-in user.
Next, open the node edit form. Input a date with the Datepicker field and then click on "Add" button to add an extra field input for the multivalue field ( For example add 2 URLs in the node ).
Result: The form will produce the JS error: ecl-ec.js?r74vg1:2 Uncaught RangeError: Maximum call stack size exceeded.
After a while the form page becomes unresponsive and the browser window crashes.
In our case, we are using a Publication node type with a publication date input field and a multivalue Paragraph field "Author".
The text was updated successfully, but these errors were encountered: