My VueJS and Buefy project begins with two distinct click actions:
- Click on the Cyan area -> redirects to another page (Action 1)
- Click on the Magenta area -> shows a dropdown menu (Action 2)
https://i.stack.imgur.com/AVLOS.png
However, when clicking on Action 2, it always triggers Action 1.
Below is my component code:
<MyComponent
:projects="data"
@click.native="actionOne()"
/>
Within my component, there is a dropdown (utilizing Buefy component) :
<p>{{ data.projects }}</p>
<BDropdown aria-role="list">
<BButton
slot="trigger"
class="button"
type="is-text"
@click.prevent="actionTwo()"
>
<BIcon icon="dots-horizontal" />
</BButton>
<BDropdownItem aria-role="listitem">Update</BDropdownItem>
<BDropdownItem aria-role="listitem">Archive</BDropdownItem>
</BDropdown>
I have attempted using different event modifiers like stop
and prevent
, but the desired behavior is not achieved.
stop
prevent