kiwicom/orbit

textlink onClick when stopPropagation call two time

straxico opened this issue · 1 comments

textlink onClick when stopPropagation enable call two time

need use else

  const onClickHandler = ev => {
    if (stopPropagation) {
      ev.stopPropagation();
      if (onClick) onClick(ev);
    }
    if (onClick) onClick(ev);
  };

if (onClick) onClick(ev);

vepor commented

You're right @straxico, thanks for the bug report! 🙂

Let me prepare a quick fix for this 💪