web-components-examples
web-components-examples copied to clipboard
expanding-list-web-component err
When I switch from Google's English to Chinese; const nextul = e.target.nextElementSibling; The value of nextul is null and cannot be expanded.
Google translate adds elements to the dom, which interrupts the functionality of the web component in this instance (from a quick test it appears to add <font> elements).
To fix this de-coupling the javascript from the dom elements (ie using classes/ids instead) would be needed.