react tooltip on disabled button

Solutions on MaxInterview for react tooltip on disabled button by the best coders in the world

showing results for - "react tooltip on disabled button"
Maria
09 Jan 2017
1/* Wrap the button in a span or div and conditionally set pointer-events to none */
2<Tooltip title="You don't have permission to do this">
3  <span>
4    <button disabled={disabled} style={disabled ? { pointerEvents: "none" } : {}}>
5      {'A disabled button'}
6    </button>
7  </span>
8</Tooltip>