Skip to content

Commit

Permalink
Bugfix/handle clicks on info bubble (allegro#423)
Browse files Browse the repository at this point in the history
* Register drags and clicks on measure item, not on info icon
  • Loading branch information
adrianmroz authored May 17, 2019
1 parent c9aa807 commit 596249f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/client/components/measures-tile/measure-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ export const MeasureItem: React.SFC<MeasureItemProps> = ({ title, name, measureD
measureDragStart(name, e);
};

return <div
className={classNames(MEASURE_CLASS_NAME, "row", { selected })}
onClick={handleClick}
draggable={true}
onDragStart={handleDragStart}>
<div className="measure-item-name">
return <div className={classNames(MEASURE_CLASS_NAME, "row", { selected })}>
<div className="measure-item-name" onClick={handleClick} draggable={true} onDragStart={handleDragStart}>
<HighlightString className="label measure-item-label" text={title} highlight={searchText} />
{approximate && <SvgIcon className="approximate-measure-icon" svg={require("../../icons/approx.svg")} />}
</div>
Expand Down

0 comments on commit 596249f

Please sign in to comment.