Skip to content

Dispose of editor models that already exist when making editor#13

Merged
khalwat merged 1 commit intonystudio107:developfrom
kabel:fix/error-on-existing-model
May 17, 2025
Merged

Dispose of editor models that already exist when making editor#13
khalwat merged 1 commit intonystudio107:developfrom
kabel:fix/error-on-existing-model

Conversation

@kabel
Copy link
Contributor

@kabel kabel commented May 15, 2025

Description

The makeMonacoEditor function will trigger an error if it's called with the same elementId.

Related issues

See nystudio107/craft-code-field#16

@kabel kabel requested a review from khalwat as a code owner May 15, 2025 17:34
@kabel kabel force-pushed the fix/error-on-existing-model branch from 37a560e to 6112f79 Compare May 15, 2025 17:39
@khalwat
Copy link
Contributor

khalwat commented May 15, 2025

Thanks for the PR

@khalwat khalwat merged commit 097a6ce into nystudio107:develop May 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants