@RickR2H is right. It's related to that PR
@dgrammatiko It's related to this code block https://github.com/joomla/joomla-cms/blob/4.0-dev/build/media_source/system/js/fields/validate.es6.js#L119-L125
message is null, and it causes the error. Could you please fix it? My dirty fix would be changing that block of code to:
if (empty && empty === 'checkbox') {
elMsg.innerHTML = (message !== null && Joomla.sanitizeHtml(message)) || Joomla.sanitizeHtml(Joomla.Text._('JLIB_FORM_FIELD_REQUIRED_CHECK'));
} else if (empty && empty === 'value') {
elMsg.innerHTML = (message !== null && Joomla.sanitizeHtml(message)) || Joomla.sanitizeHtml(Joomla.Text._('JLIB_FORM_FIELD_REQUIRED_VALUE'));
} else {
elMsg.innerHTML = (message !== null && Joomla.sanitizeHtml(message)) || Joomla.sanitizeHtml(Joomla.Text._('JLIB_FORM_FIELD_INVALID_VALUE'));
}
But you understand it better and could provide better fix.
@joomdonation your code is fine, my bad
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-14 11:20:19 |
Closed_By | ⇒ | joomdonation |
Thanks @dgrammatiko . I opened PR #34513 to solve this issue.
Confirm the issue (Firefox, Mac):