Skip to content

Commit

Permalink
Closes #657: Ignore symfony dump buttons in preview
Browse files Browse the repository at this point in the history
Adds a fix to ignore symfony dump buttons so you can dd a preview and expand items.
  • Loading branch information
dubcanada authored and ifox committed Jul 6, 2020
1 parent 86d7293 commit 90524b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/js/components/PreviewerFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// disable button and link in preview
const iframe = event.target
const buttons = iframe.contentDocument.querySelectorAll('a,button')
const buttons = iframe.contentDocument.querySelectorAll('a:not(.sf-dump-toggle),button')
for (let i = 0; i < buttons.length; i++) {
buttons[i].setAttribute('disabled', 'disabled')
Expand Down

0 comments on commit 90524b4

Please sign in to comment.