Skip to content

Fix base64 multi-file change event#1697

Open
Caltsic wants to merge 1 commit into
json-editor:masterfrom
Caltsic:codex/fix-base64-multiple-upload-change
Open

Fix base64 multi-file change event#1697
Caltsic wants to merge 1 commit into
json-editor:masterfrom
Caltsic:codex/fix-base64-multiple-upload-change

Conversation

@Caltsic

@Caltsic Caltsic commented May 23, 2026

Copy link
Copy Markdown

Summary

Fixes #1672.

When the base64 editor reads multiple files inside an array item, it updates the parent array editor after all FileReader callbacks finish. That path did not bubble a change event to the root JSONEditor, so consumers listening with editor.on('change', ...) were not notified.

This change bubbles the event from the updated array editor after setValue() completes.

Tests

  • git diff --check
  • npm run eslint
  • npx eslint -c ./.eslintrc tests/unit/editors/base64.spec.js
  • npm run test-headless (300 SUCCESS)

@Caltsic Caltsic marked this pull request as ready for review May 30, 2026 07:42
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.

Uploading multiple files does not trigger the 'change' event

1 participant