loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Check newly added node type before "attachDirAuto" (#26972)

authored by

wxiaoguang and committed by
GitHub
80d14b8f 4e240f23

+1 -1
+1 -1
web_src/js/modules/dirauto.js
··· 19 19 for (let i = 0; i < len; i++) { 20 20 const addedNode = mutation.addedNodes[i]; 21 21 if (addedNode.nodeType !== Node.ELEMENT_NODE && addedNode.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) continue; 22 - attachDirAuto(addedNode); 22 + if (addedNode.nodeName === 'INPUT' || addedNode.nodeName === 'TEXTAREA') attachDirAuto(addedNode); 23 23 const children = addedNode.querySelectorAll('input, textarea'); 24 24 const len = children.length; 25 25 for (let childIdx = 0; childIdx < len; childIdx++) {