GrapesJS / GrapesJS/grapesjs

BUG: BUG: In Safari, drag and drop of blocks does not work since v0.22.1

Open
#6,591 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
26.2k
Forks
4.6k
Avg merge
2d 21h
Merged PRs (30d)
6

Description

### GrapesJS version

- [x] I confirm to use the latest version of GrapesJS

### What browser are you using?

Safari 18.5 on Mac

### Reproducible demo link

https://codepen.io/jmulik/pen/LEpdjZq

### Describe the bug

**How to reproduce the bug?**
1. View https://codepen.io/jmulik/pen/LEpdjZq in Chrome - Able to drag and drop blocks.
2. View same in Safari. - Unable to drop and drop blocks.

**What is the expected behavior?**
Drag and Drag should work in Safari. Just like in Chrome.

**What is the current behavior?**
Drag and Drop of blocks does not work in Safari.

**Observations**
Drag and Drag in Safari works in GrapeJS v0.21.13. Broken in v0.22.1 and later.

The cause of the issue seems to be the inability of the grapejs session to create the `gjsProject` key in browser local storage.

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.