Change Variant and Open Overlay in one click

Hi guys, could someone help me with this?
I have a button on a dropdown that I want to CHANGE A VARIANT COMPONENT and OPEN A OVERLAY LAYER at the same click.

To Change the Variant I put ON CLICK event.

To open the OVERLAY LAYER I put on MOUSE UP event.

But the change variation only works when I disable de MOUSE UP event.
Someone can help me?
Thanks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.