Skip to content

[Safari] copy_with_column_headers context menu option doesn't work #11261

Open
@alojzy231

Description

@alojzy231

Describe the bug

Hi!
I've got an error on Safari v18.1 where I want to use context menu's copy_with_column_headers option. It doesn't copy any value, column header nor cell's value (doesn't add any value to the clipboard). When using cmd + c it works.
I've tested an example in Handsontable's docs: All available Handsontable hooks example and it seems that using copy options from context menu doesn't trigger beforeCopy and afterCopy hook but they get triggered on cmd + c.

I've seen that there has been implemented a workaround in CopyPaste plugin in #ensureClipboardEventsGetTriggered method for Safari and was tested on Safari@16.5.2.

I believe that is a bug.

Is there any workaround that I can implement for to have an option to copy cells' with their columns' headers while waiting for the fix?

Video/Screenshots

No response

Provide a link to the demo with the bug reproduction

https://stackblitz.com/edit/react-bjedvh?file=src%2FExampleComponent.jsx

Handsontable version

14.6

Framework version

No response

Your environment

Safari@18.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions