Skip to main content
Question

setReactionsAsync do nothing. need help


RuCaUa

I have code

  applyRowStyles2(row) {
    let ono = this;
    let id = null;
    row.children.forEach(function(ch) {
      if (ch.name === "Property 1=Hover") {
        id = ch.id
      }
    });
    for (const ch of row.children) {
      if (ch.name === "Property 1=Hover") {
        ch.fills = [ono.solidPaintHelper(ono.styles.rowStyles.fillColorHover.rgba)];
      }
      if (ch.name === "Property 1=Frame") {
        let pro = ch.setReactionsAsync([
          {
            trigger: { type: "ON_HOVER" },
            actions: [{
              type: "NODE",
              destinationId: id,
              navigation: "CHANGE_TO",
              resetVideoPosition: false,
              transition: null,
            }]
          }
        ]).then(function () {
          console.log("Promise Resolved"); //never triggered
        }).catch(function () {
          console.log("Promise Rejected");//never triggered
        });
        console.log(pro) //type promise
        ch.fills = [ono.solidPaintHelper(ono.styles.rowStyles.fillColor.rgba)];
      }
    }
  }

I expect that interaction will be created, but i got promice and it is never been resolved or rejected

This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings