Skip to content

Commit

Permalink
prevent builder submitter click # nav
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Jan 19, 2024
1 parent 80254da commit d300048
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/javascript/template_builder/field_submitter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<button
v-if="submitters.length > 1 && editable"
class="px-2"
@click.stop="remove(submitter)"
@click.prevent.stop="remove(submitter)"
>
<IconTrashX :width="18" />
</button>
Expand Down Expand Up @@ -165,23 +165,23 @@
title="Up"
class="relative w-2"
style="font-size: 10px; margin-bottom: -4px"
@click.stop="[move(submitter, -1), $refs.label.focus()] "
@click.prevent.stop="[move(submitter, -1), $refs.label.focus()] "
>
</button>
<button
title="Down"
class="relative w-2"
style="font-size: 10px; margin-top: -4px"
@click.stop="[move(submitter, 1), $refs.label.focus()] "
@click.prevent.stop="[move(submitter, 1), $refs.label.focus()] "
>
</button>
</div>
<button
v-if="!compact && submitters.length > 1 && editable"
class="hidden group-hover:block px-2"
@click.stop="remove(submitter)"
@click.prevent.stop="remove(submitter)"
>
<IconTrashX :width="18" />
</button>
Expand Down

0 comments on commit d300048

Please sign in to comment.