Skip to content

Commit

Permalink
refactor(SHS-5955): Replace patch URL with local patch
Browse files Browse the repository at this point in the history
  • Loading branch information
codechefmarc committed Jan 13, 2025
1 parent bd1f604 commit 9eda02b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,9 @@
"extra": {
"enable-patching": true,
"patches": {
<<<<<<< HEAD
"drupal/block_class": {
"Click JavaScript to close details causes modals to scroll unnecessarily https://www.drupal.org/project/block_class/issues/3497768": "https://git.drupalcode.org/project/block_class/-/merge_requests/60.patch"
"Click JavaScript to close details causes modals to scroll unnecessarily https://www.drupal.org/project/block_class/issues/3497768": "patches/contrib/block_class/60.patch"
},
"drupal/conditional_fields": {
"https://www.drupal.org/project/conditional_fields/issues/2902164": "https://www.drupal.org/files/issues/2023-09-28/2902164-149.patch"
},
=======
>>>>>>> 11.6.3-release
"drupal/config_ignore": {
"https://www.drupal.org/project/config_ignore/issues/2857247": "https://www.drupal.org/files/issues/2020-01-11/support-for-export-2857247-44.patch",
"https://www.drupal.org/project/config_ignore/issues/2865419": "https://www.drupal.org/files/issues/2020-07-20/config_ignore-wildcard_force_import.patch"
Expand Down
6 changes: 1 addition & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions patches/contrib/block_class/60.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From d7b41e153f421a416fdd66572a6767efd14f8e8a Mon Sep 17 00:00:00 2001
From: sandippoddar <[email protected]>
Date: Tue, 7 Jan 2025 12:36:41 +0530
Subject: [PATCH] Issue #3497768: Click JavaScript to close details causes
modals to scroll unnecessarily

---
js/block-class.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/block-class.js b/js/block-class.js
index 9eedf9b..343285c 100644
--- a/js/block-class.js
+++ b/js/block-class.js
@@ -19,10 +19,10 @@
$('.show-items-used').css( "display", "none" );

// Collapse the details field when the Modal is open.
- $('.replaced-id-details').find('summary').trigger( "click" );
+ $('.replaced-id-details').removeAttr("open");

// Collapse the attribute as well on this scenario.
- $('.attribute-details').find('summary').trigger( "click" );
+ $('.attribute-details').removeAttr("open");

}

--
GitLab

0 comments on commit 9eda02b

Please sign in to comment.