J4 Issue ?
avatar brianteeman
brianteeman
2 Sep 2019

Steps to reproduce the issue

Try to create a new field of anything but text

Expected result

when you select the field type then various options will appear appropriate to that field type

Actual result

No change but there is a js error

Uncaught TypeError: Joomla.loadingLayer is not a function
    at window.typeHasChanged (index.php?option=com_fields&view=field&layout=edit&context=com_content.article:2102)
    at HTMLSelectElement.onchange (index.php?option=com_fields&view=field&layout=edit&context=com_content.article:337)

System information (as much as possible)

Additional comments

avatar brianteeman brianteeman - open - 2 Sep 2019
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Sep 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 2 Sep 2019
avatar C-Lodder
C-Lodder - comment - 2 Sep 2019

Wherever Joomla.loadingLayer() is being callled from, it needs to be replaced with:

To show the loading icon:

document.body.appendChild(document.createElement('joomla-core-loader'));

To hide the loading icon:

const loaderElement = document.querySelector('joomla-core-loader');
loaderElement.parentNode.removeChild(loaderElement);

or:

document.body.removeChild(document.querySelector('joomla-core-loader'));
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2019
Status New Discussion
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Sep 2019

Closed as having Pull Request #26158

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Sep 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-09-04 04:23:04
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 4 Sep 2019

Add a Comment

Login with GitHub to post a comment