Skip to content

Commit 54eaf0d

Browse files
authored
Fix missing content after removing content element (#113)
| Q | A | --------------- | ----- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT
2 parents d7ee25a + 58f7a6a commit 54eaf0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/admin/js/trix/trix-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ document.querySelectorAll('select').forEach(select => {
5151
});
5252
});
5353

54-
document.querySelectorAll('button[data-live-action-param="addCollectionItem"]').forEach(button => {
54+
document.querySelectorAll('button[data-live-action-param]').forEach(button => {
5555
button.addEventListener('click', (event) => {
5656
document.querySelectorAll('trix-editor').forEach((editor) => {
5757
const innerInput = document.getElementById(editor.attributes.input.value);

0 commit comments

Comments
 (0)