react-tippy icon indicating copy to clipboard operation
react-tippy copied to clipboard

Prints null/undefined as string, when passed as title

Open PavelHasala opened this issue 8 years ago • 0 comments

Shouldn't it disable tooltip, if I pass null or undefined to title? It seems, that prop.title is parsed to string and used without checking.

<Tooltip title={null}><button /></Tooltip>
<Tooltip title={undefined}><button /></Tooltip>

screen shot 2018-01-15 at 14 12 10 screen shot 2018-01-15 at 14 12 26

PavelHasala avatar Jan 15 '18 13:01 PavelHasala