Browse Source

Refactor comments, reactivity

imwald
Nuša Pukšič 3 months ago
parent
commit
513ba75024
  1. 2
      assets/controllers/comments_mercure_controller.js

2
assets/controllers/comments_mercure_controller.js

@ -31,6 +31,6 @@ export default class extends Controller {
// Set value and dispatch an 'input' event so Live updates & re-renders // Set value and dispatch an 'input' event so Live updates & re-renders
input.value = jsonString; input.value = jsonString;
input.dispatchEvent(new Event('input', { bubbles: true })); input.dispatchEvent(new Event('change', { bubbles: true }));
} }
} }

Loading…
Cancel
Save