FlexGrid: Menu appears when pasting cell values in safari

Posted by: matt_baker on 7 April 2021, 9:52 am EST

  • Posted 7 April 2021, 9:52 am EST

    This seems to be affecting macOS Big Sur / Safari 14:

    When pasting a value into a cell, a small context menu appears with "Paste" inside. Clicking or ignoring the menu still pastes the value, but the menu shouldn't appear, and does not appear in Big Sur / Chrome.

    Is this a known Safari issue, and is there a workaround for removing / preventing the menu from appearing?

  • Replied 7 April 2021, 9:14 pm EST

    Hi,

    This is the expected behavior. In safari, as a security feature, when document.execCommand("paste") command is executed then a context menu is shown to the user to confirm if they want to paste i.e allow the website to read clipboard content or not. You may confirm this behaviour using the following sample:
    https://codesandbox.io/s/wijmo-starter-forked-fyvw4?file=/src/index.js
    In the sample, try to paste in input field using by pressing the command + v key and observe that "paste" menu is displayed.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels