-
Improvement
-
Resolution: Fixed
-
Minor
-
5.0
-
MOODLE_500_STABLE
-
MOODLE_501_STABLE
-
MDL-85225-main -
-
-
-
1
-
HQ 2025 Sprint I1.4 Moppies
The lib/amd/src/emoji/picker.js module throws an error when the developer setting "Show template information" is enabled.
The explanation is straightforward: in both createHeaderRow and createEmojiRow, after loading the template, "firstChild" is utilised instead of "firstElementChild". Consequently, it refers to the template comment rather than the template's first element node.
Typically, it's understood that displaying template information may disrupt certain Javascript modules. In this instance, though, the theme might override the emoji template, which means the module unnecessarily depends on the template structure. Implementing this minor adjustment will enhance the module's stability.