administrator/index.php?option=com_content&view=articles
Note: This also occurs on some other list views
No JS errors
TypeError: e is null --- searchtools.min.js:1:6704
or in debug mode:
TypeError: filteredByCaption is null --- searchtools.js:285:11
Labels |
Added:
?
|
@infograf768 This was a fresh clone and installation of the J4 repo
This happens only when there are no articles.
When I install sample data, no more js error
This should help solving the issue.
Yeah just updated the test instructions
Can you check patching with this?
diff --git a/build/media_source/system/js/searchtools.es6.js b/build/media_source/system/js/searchtools.es6.js
index 1019da0..a61ac40 100644
--- a/build/media_source/system/js/searchtools.es6.js
+++ b/build/media_source/system/js/searchtools.es6.js
@@ -296,5 +296,7 @@
if (activeFilterCount === 0) {
const filteredByCaption = document.getElementById('filteredBy');
- filteredByCaption.parentNode.removeChild(filteredByCaption);
+ if (filteredByCaption !== null) {
+ filteredByCaption.parentNode.removeChild(filteredByCaption);
+ }
}
and run npm
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-05-14 07:50:54 |
Closed_By | ⇒ | infograf768 |
Can't reproduce Macintosh/Firefox