Skip to content

Instantly share code, notes, and snippets.

@markadrake
Created December 1, 2022 05:47
Show Gist options
  • Save markadrake/b150a839727d8372b45ddda026dbc4d2 to your computer and use it in GitHub Desktop.
Save markadrake/b150a839727d8372b45ddda026dbc4d2 to your computer and use it in GitHub Desktop.
Touch Friendly Sharepoint Dropdowns
var linksWithChildren = document.querySelectorAll("li.dynamic-children > a");
for (var i = 0; i < linksWithChildren.length; i++){
linksWithChildren[i].setAttribute("aria-haspopup","true")
}
$('li.static.dynamic-children > a').attr('aria-haspopup', "true");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment