fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Feature]: For Mac, allow apps that use BaseButton's menus, to configure a property that makes the context menu modal

Open avipie opened this issue 2 years ago • 3 comments

Library

React / v8 (@fluentui/react)

Describe the feature that you would like added

When the context menu is up is should behave as a modal div for Mac apps: (1) Hovering on the app surface outside the context menu should not interact with the app surface. (2) Clicking in the app surface should only dismiss the context menu and not perform any action like selecting an object on the app surface.

Have you discussed this feature with our team

No.

Additional context

Here's my current implementation at my app:

      const menuWrapperElement: HTMLElement | null = document.querySelector(
        ".ms-Callout-container"

      );
      if (!!menuWrapperElement) {
        menuWrapperElement.style.width = "100vw";
        menuWrapperElement.style.height = "100vh";
        menuWrapperElement.addEventListener("click", (e) => {
          if (e?.target === menuWrapperElement) {
            this.onDismiss();
          }
        });
      }
    }

Validations

  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Priority

Normal

avipie avatar Nov 17 '23 08:11 avipie

keep open

(Fixing this issue is important for Mac look & feel, and the workaround is far from being ideal. We already wasted time on investigating and fixing a bug related to this workaround).

idigra avatar Jul 06 '24 18:07 idigra

@micahgodbolt What are the plans for this issue?

idigra avatar Oct 14 '24 14:10 idigra

keep open

idigra avatar Apr 15 '25 08:04 idigra

This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".

keep open

idigra avatar Oct 12 '25 10:10 idigra