How to use the botframework-webchat-component.getTabIndex function in botframework-webchat-component

To help you get started, we’ve selected a few botframework-webchat-component examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / BotFramework-WebChat / packages / bundle / src / adaptiveCards / Attachment / AdaptiveCardRenderer.js View on Github external
({ target }) => {
      // Some items, e.g. tappable text, cannot be disabled thru DOM attributes
      if (!disabled) {
        const tabIndex = getTabIndex(target);

        // If the user is clicking on something that is already clickable, do not allow them to click the card.
        // E.g. a hero card can be tappable, and image and buttons inside the hero card can also be tappable.
        if (typeof tabIndex !== 'number' || tabIndex < 0) {
          tapAction && performCardAction(tapAction);
        }
      }
    },
    [disabled, performCardAction, tapAction]

botframework-webchat-component

React component of botframework-webchat

MIT
Latest version published 5 months ago

Package Health Score

83 / 100
Full package analysis

Similar packages