Skip to main content
Solved

Variable interaction events on component with variants

  • July 7, 2023
  • 1 reply
  • 342 views

Hi there,

I’m trying to understand if it’s possible to set variable interaction events on component instances that already have interactivity in place.

For example, we have a checkbox component and all the state changes for that checkbox are controlled by variants. I then want to use an instance of that component and have it do something like set a variable value when clicked.

I’m finding that when I set a click event on an instance of a component it then breaks all of the interaction that’s set at the component level.

Am I missing something?

Best answer by Daniel_Cullinan

I’ve had the same issue. A workaround I’m using for now is to use a ‘Mouse down’ interaction on the instance so that the component’s ‘On click’ interaction is honoured.

This topic has been closed for replies.

1 reply

Daniel_Cullinan
  • New Participant
  • 34 replies
  • Answer
  • July 7, 2023

I’ve had the same issue. A workaround I’m using for now is to use a ‘Mouse down’ interaction on the instance so that the component’s ‘On click’ interaction is honoured.