Skip to content
Snippets Groups Projects
Commit d1bb571a authored by Gaus Surahman's avatar Gaus Surahman
Browse files

- Fixed for commerce product variation AJAX.

parent 35825dd8
No related branches found
No related tags found
No related merge requests found
Pipeline #312436 failed
......@@ -37,8 +37,7 @@
"no-shadow": 0,
"vars-on-top": 0,
"no-plusplus": 0,
"no-bitwise": 0,
"object-shorthand": 0
"no-bitwise": 0
},
"overrides": [
{
......
......@@ -11,9 +11,12 @@
.form-item--collapsidesc > div {
max-width: 100% !important;
padding: 0 !important;
border: 0 !important;
}
.form-item--collapsidesc > div > details {
margin-bottom: 0 !important;
box-shadow: none !important;
}
......
......@@ -261,6 +261,15 @@ class BlazyAlter {
$settings = &$build['#settings'];
$blazies = $settings['blazies'];
// Adds bio.ajax to fix product variation AJAX within BigPipe.
// Views AJAX will automatically work, however to support other non-views
// AJAX, add more conditions to your custom hook_blazy_settings_alter.
if ($type = $blazies->get('field.entity_type')) {
if ($type == 'commerce_product_variation') {
$blazies->set('use.ajax', TRUE);
}
}
// Sniffs for Views to allow block__no_wrapper, views_no_wrapper, etc.
$function = 'views_get_current_view';
// @todo phpstan bug, misleading with nullable function return.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment