Don't show live eval popovers for roles as they have always been broken in JS

This commit is contained in:
Andrew Kingston 2024-03-14 16:40:35 +00:00
parent b6eab42c18
commit 8bbdebe050
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,13 @@
if (!context || !binding.value || binding.value === "") {
return
}
// Roles have always been broken for JS. We need to exclude them from
// showing a popover as it will show "Error while executing JS".
if (binding.category === "Role") {
return
}
stopHidingPopover()
popoverAnchor = target
hoverTarget = {