MDL-65896 core: fix emoji picker IE11 support
authorRyan Wyllie <ryan@moodle.com>
Wed, 23 Oct 2019 07:16:30 +0000 (15:16 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 23 Oct 2019 07:25:27 +0000 (15:25 +0800)
lib/amd/build/emoji/picker.min.js
lib/amd/build/emoji/picker.min.js.map
lib/amd/src/emoji/picker.js

index e68677c..668973a 100644 (file)
Binary files a/lib/amd/build/emoji/picker.min.js and b/lib/amd/build/emoji/picker.min.js differ
index a060264..be585ee 100644 (file)
Binary files a/lib/amd/build/emoji/picker.min.js.map and b/lib/amd/build/emoji/picker.min.js.map differ
index f1347cc..e1d350e 100644 (file)
@@ -430,7 +430,7 @@ const renderRows = async (rowContainer, currentRows, nextRows) => {
             toKeep.splice(nextRowIndex, 0, toKeep);
         } else {
             toKeep.push(rowData);
-            rowContainer.append(row);
+            rowContainer.appendChild(row);
         }
     });
 
@@ -688,7 +688,7 @@ const getHandleSearch = (searchInput, searchResultsContainer, emojiContainer) =>
     const rowContainer = searchResultsContainer.querySelector(SELECTORS.ROW_CONTAINER);
     // Build a render function for the search results.
     const renderSearchResultsAtPosition = generateRenderRowsAtPositionFunction(rowContainer);
-    searchResultsContainer.append(rowContainer);
+    searchResultsContainer.appendChild(rowContainer);
 
     return async () => {
         const searchTerm = searchInput.value.toLowerCase();