Skip to content

Commit

Permalink
Merge pull request #6151 from howdu/fix-dropdown-button-wire-stop
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Apr 8, 2023
1 parent 8edba54 commit 2c562de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/views/components/builder.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
title="{{ __('forms::components.builder.buttons.move_item_up.label') }}"
type="button"
wire:click.stop="dispatchFormEvent('builder::moveItemUp', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('builder::moveItemUp', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
@class([
'flex items-center justify-center flex-none w-10 h-10 text-gray-400 transition hover:text-gray-500',
Expand Down Expand Up @@ -195,6 +196,7 @@ class="w-4 h-4 text-primary-500"
title="{{ __('forms::components.builder.buttons.move_item_down.label') }}"
type="button"
wire:click.stop="dispatchFormEvent('builder::moveItemDown', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('builder::moveItemDown', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
@class([
'flex items-center justify-center flex-none w-10 h-10 text-gray-400 transition hover:text-gray-500',
Expand Down Expand Up @@ -227,6 +229,7 @@ class="w-4 h-4 text-primary-500"
<button
title="{{ __('forms::components.builder.buttons.clone_item.label') }}"
wire:click.stop="dispatchFormEvent('builder::cloneItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('builder::cloneItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
type="button"
@class([
Expand Down Expand Up @@ -259,6 +262,7 @@ class="w-4 h-4 text-primary-500"
<button
title="{{ __('forms::components.builder.buttons.delete_item.label') }}"
wire:click.stop="dispatchFormEvent('builder::deleteItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('builder::deleteItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
type="button"
@class([
Expand Down
4 changes: 4 additions & 0 deletions resources/views/components/repeater.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class="gap-6"
title="{{ __('forms::components.repeater.buttons.move_item_up.label') }}"
type="button"
wire:click.stop="dispatchFormEvent('repeater::moveItemUp', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('repeater::moveItemUp', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
@class([
'flex items-center justify-center flex-none w-10 h-10 text-gray-400 transition hover:text-gray-500',
Expand Down Expand Up @@ -174,6 +175,7 @@ class="w-4 h-4 text-primary-500"
title="{{ __('forms::components.repeater.buttons.move_item_down.label') }}"
type="button"
wire:click.stop="dispatchFormEvent('repeater::moveItemDown', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('repeater::moveItemDown', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
@class([
'flex items-center justify-center flex-none w-10 h-10 text-gray-400 transition hover:text-gray-500',
Expand Down Expand Up @@ -206,6 +208,7 @@ class="w-4 h-4 text-primary-500"
<button
title="{{ __('forms::components.repeater.buttons.clone_item.label') }}"
wire:click.stop="dispatchFormEvent('repeater::cloneItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('repeater::cloneItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
type="button"
@class([
Expand Down Expand Up @@ -238,6 +241,7 @@ class="w-4 h-4 text-primary-500"
<button
title="{{ __('forms::components.repeater.buttons.delete_item.label') }}"
wire:click.stop="dispatchFormEvent('repeater::deleteItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:target="dispatchFormEvent('repeater::deleteItem', '{{ $getStatePath() }}', '{{ $uuid }}')"
wire:loading.attr="disabled"
type="button"
@class([
Expand Down

0 comments on commit 2c562de

Please sign in to comment.