Skip to content

Commit

Permalink
Fix selected insert target behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed May 31, 2024
1 parent 57cfc42 commit fe3d42d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content_editor/static/content_editor/content_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ django.jQuery(($) => {
"click",
".order-machine-insert-target",
function handleClick(e) {
if (e.target.classList.contains("selected")) {
hidePluginButtons()
const isSelected = e.target.classList.contains("selected")
hidePluginButtons()
if (isSelected) {
ContentEditor._insertBefore = null
e.target.classList.remove("selected")
} else {
e.target.classList.add("selected")

Expand Down

0 comments on commit fe3d42d

Please sign in to comment.