Labels |
Added:
?
|
With these changes
((customElements, Joomla, bootstrap) => {
...
})(customElements, Joomla, bootstrap);
the first two errors have gone, it remains the third one at line 247.
Try changing
&& bootstrap.Modal.getInstance(this.modalElement) === undefined)
to
&& bootstrap.Modal.getInstance
&& bootstrap.Modal.getInstance(this.modalElement) === undefined)
Title |
|
@dgrammatiko thank you for instructions, sorry but id does not work. Maybe I missed something but also with latest changes (and npm ..) I see the error Uncaught ReferenceError: bootstrap is not defined (line 247).
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-30 08:15:47 |
Closed_By | ⇒ | chmst |
Closing as there is a PR
That's probably because of a wrong order of the scripts. Try moving
joomla-cms/layouts/joomla/form/field/media.php
Lines 119 to 120 in 83d1e49
before
joomla-cms/layouts/joomla/form/field/media.php
Line 158 in 83d1e49
PS. Nope, that's not the problem. Change
joomla-cms/build/media_source/system/js/fields/joomla-field-media.w-c.es6.js
Line 192 in 83d1e49
to
and
joomla-cms/build/media_source/system/js/fields/joomla-field-media.w-c.es6.js
Line 1 in 83d1e49