GrapesJS / GrapesJS/studio

BUG: Using custom device width via Devices API makes adjusting existing components non-responsive to changes

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### What browser are you using?

Chrome 135.0.7049.85

### Describe the bug

**How to reproduce the bug?**
1. Add a custom device width via Devices API (`editor.Devices.add`)
2. Adjust an existing component width.
3. Do the same adjustments

**What is the expected behavior?**
Adjustments should still work on all devices registered.

**What is the current behavior?**
Cannot adjust components on some device widths (prevalent on custom devices)

If is necessary to execute some code in order to reproduce the bug, paste it here below:
```js
// your code here
```
`Attached the gif showing the bug`
![Image](https://github.com/user-attachments/assets/591bcc3f-716f-45ae-be39-0ca91028b8df)

### Code of Conduct

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.