From 7b0efd9f9dc110123a6e42a5f05a03e41473ba4f Mon Sep 17 00:00:00 2001 From: Sascha Eggenberger <46355-saschaeggi@users.noreply.drupalcode.org> Date: Wed, 19 Jul 2023 16:31:41 +0000 Subject: [PATCH] Issue #3375350: gin-table-scroll-wrapper prevents nested paragraph buttons from being clickable --- includes/table.theme | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/table.theme b/includes/table.theme index 5c4da9469..b75ee6b3a 100644 --- a/includes/table.theme +++ b/includes/table.theme @@ -12,10 +12,8 @@ function gin_theme_suggestions_table_alter(array &$suggestions, array $variables if (empty($variables['attributes']['class'])) { return; } - if (!($variables['attributes']['class'] instanceof \Traversable)) { - $variables['attributes']['class'] = [$variables['attributes']['class']]; - } - if (in_array('field-multiple-table', $variables['attributes']['class'])) { + + if (is_array($variables['attributes']['class']) && in_array('field-multiple-table', $variables['attributes']['class'])) { $suggestions[] = 'table__simple'; } } -- GitLab