Skip to content

Commit

Permalink
revert preview hide toggling visibility (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-five256 authored Jun 22, 2024
1 parent 8c5e7df commit 2166fe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/controllers/preview_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default class extends Controller {
event.preventDefault();

if (this.containerTarget.hasChildNodes()) {
this.containerTarget.classList.toggle('hidden');
this.containerTarget.replaceChildren();
this.containerTarget.classList.add('hidden');
return;
}

Expand Down

0 comments on commit 2166fe8

Please sign in to comment.