J4 Issue ?
avatar C-Lodder
C-Lodder
10 Feb 2018

Steps to reproduce the issue

  • Fresh install of J4
  • Click Never on the Stats alert
  • Console error this.parentNode is null [joomla-alert.js:84:9]
close() {
      this.dispatchCustomEvent('joomla.alert.close');
      this.addEventListener("transitionend", function () {
        this.dispatchCustomEvent('joomla.alert.closed');
        this.parentNode.removeChild(this);    <<<<<<<<<<< this line causing the error
      }, false);
      this.classList.remove('joomla-alert--show');
 }
avatar C-Lodder C-Lodder - open - 10 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 10 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Feb 2018
avatar dgt41
dgt41 - comment - 10 Feb 2018

@C-Lodder don't bother, alerts are currently rewritten from scratch, so this won't be fixed

avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Feb 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Feb 2018
Category JavaScript
avatar C-Lodder
C-Lodder - comment - 12 Feb 2018

Will or wont?

avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 17 Jun 2018

Closed as this has been resolved elsewhere and is no longer reproducable

avatar brianteeman brianteeman - close - 17 Jun 2018
avatar brianteeman brianteeman - change - 17 Jun 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-06-17 21:56:13
Closed_By brianteeman
Labels Added: J4 Issue
avatar ReLater
ReLater - comment - 11 Sep 2018

Closed as this has been resolved elsewhere and is no longer reproducable

I still can reproduce it with nightly build J4 of today.

FF 62.0

TypeError: this.parentNode is null  4 joomla-alert.min.js:1:1874
	close/< /media/vendor/joomla-custom-elements/js/joomla-alert.min.js:1:1874
	c /media/vendor/webcomponentsjs/js/webcomponents-sd-ce.min.js:1:22278

Vivaldi:

joomla-alert.min.js?0aa903f1b65e1f49dd6ad3af682cceac:1 Uncaught TypeError: Cannot read property 'removeChild' of null
    at HTMLElement.<anonymous> (joomla-alert.min.js?0aa903f1b65e1f49dd6ad3af682cceac:1)
(anonymous) @ joomla-alert.min.js?0aa903f1b65e1f49dd6ad3af682cceac:1

Add a Comment

Login with GitHub to post a comment