Auto-saving global CSS changes refreshes the editor while editing code

Created on 24 February 2025, 3 months ago

Overview

Auto-saving global CSS changes when editing a code component refreshes the editor while editing code. Focus is lost, and the user needs to click into the editor again. Auto-saved changes are debounced to one second, so if typing stops for a second, the problem occurs.

Proposed resolution

This was introduced in Loading and auto-saving an edited code component Active . The problem is in ui/src/features/code-editor/hooks/useAssetLibraryData.ts. The same problem was solved for editing the JS or CSS code of code components. See ui/src/features/code-editor/hooks/useCodeComponentData.ts.

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

🇳🇱Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024