diff --git a/packages/bbui/src/Actions/click_outside.js b/packages/bbui/src/Actions/click_outside.js
index 76d015bee6..ee478c70c0 100644
--- a/packages/bbui/src/Actions/click_outside.js
+++ b/packages/bbui/src/Actions/click_outside.js
@@ -15,6 +15,9 @@ let clickHandlers = []
* Handle a body click event
*/
const handleClick = event => {
+ // Treat right clicks (context menu events) as normal clicks
+ const eventType = event.type === "contextmenu" ? "click" : event.type
+
// Ignore click if this is an ignored class
if (event.target.closest('[data-ignore-click-outside="true"]')) {
return
@@ -28,7 +31,7 @@ const handleClick = event => {
// Process handlers
clickHandlers.forEach(handler => {
// Check that we're the right kind of click event
- if (handler.allowedType && event.type !== handler.allowedType) {
+ if (handler.allowedType && eventType !== handler.allowedType) {
return
}
@@ -51,6 +54,7 @@ const handleClick = event => {
}
document.documentElement.addEventListener("click", handleClick, true)
document.documentElement.addEventListener("mousedown", handleClick, true)
+document.documentElement.addEventListener("contextmenu", handleClick, true)
/**
* Adds or updates a click handler
diff --git a/packages/builder/src/components/backend/DataTable/TableDataTable.svelte b/packages/builder/src/components/backend/DataTable/TableDataTable.svelte
index fe393c5268..faac85f9e3 100644
--- a/packages/builder/src/components/backend/DataTable/TableDataTable.svelte
+++ b/packages/builder/src/components/backend/DataTable/TableDataTable.svelte
@@ -101,11 +101,10 @@
diff --git a/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte b/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte
index 9a08666857..970a645a74 100644
--- a/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte
+++ b/packages/frontend-core/src/components/grid/layout/NewColumnButton.svelte
@@ -1,6 +1,7 @@